Migrate Shopify integration
Prior to the launch of the native Didomi/Shopify integration, Didomi provided two scripts that could be manually added to your organization's Shopify store.
Script 1
Propagated consent from Shopify consent categories
Script 2
Checkout handling
In this article, we will cover how to remove these previous scripts so that your organization can migrate to the native Didomi/Shopify integration.
Organizations that have previously implemented script 1 and script 2 should remove those scripts before continuing with the configuration of the Didomi/Shopify native integration.
Remove script 1
Script 1 enabled your organization to propagate consent values for vendors configured in the Didomi CMP from the four Shopify consent categories: Analytics, Marketing, Preferences, and Sale of Data. The native Didomi/Shopify integration will handle this propagation once implemented, so this script should be removed from your Shopify store's theme code.
Navigate to the admin view of your Shopify store and click Online Store on the left-hand panel.
Click the ellipsis inline with the active theme for your online store and select Edit code from the drop-down menu.

In the Shopify store theme code editor, expand the layout menu and select the theme.liquid file.

Delete the Didomi SDK script from the <head> tag in the file. Below is an example of the Didomi SDK script.
Next, locate the following line in the theme.liquid file and delete it to stop using the script in your Shopify store theme:
Save the changes made to the file when finished.
Finally, expand the snippets menu and locate the didomi-shopify-integration.liquid file.

Right-click on the file and select Delete Permanently from the subsequent drop-down menu.

Confirm the decision to delete the didomi-shopify-integration.liquid file in the subsequent modal and click Delete.

Remove script 2
Script 2 enabled your organization to integrate the Didomi CMP into the Shopify checkout process by using a custom pixel within the Shopify store.
In order to remove this script, navigate to the admin view of your Shopify store and click Settings on the left-hand panel.

Click Customer events on the left-hand panel of the subsequent page.

Select the pixel where the Didomi script is added from the list.

Locate the script in the code editor for the pixel and remove it from the code. Below is an example.
Click Save when finished.

Last updated