Shopify Web
Install the Shopify Website Pixel
The Shopify Website Integration consists of two integrations covering the full tracking spec.
- The Shopify Storefront Integration
- The Shopify Checkout Integration
Installation Instructions
The installation process of Converge is slightly different based on whether you have a Shopify Liquid storefront; or whether you are running a Shopify Headless Storefront.
The Converge Website installation for a Shopify Liquid store consists of:
Create a new Client Source in Converge
- In Converge, click on Create a new source
- Pick Client-side from the modal
- Name your pixel: e.g.
{Storename} Storefront
Install the Converge Liquid snippet in your storefront
- Click on your newly created Source and from the modal pick
Shopify Liquid
, and copy that snippet. - In the Shopify admin dashboard, navigate to Sales Channels > Online Store > Themes
- Click on ”…” next to the Customize button, and click Edit code.
- Go to the theme.liquid file and insert the snippet right above the closing
</head>
tag in the theme.liquid file. Click Save
Verify that the integration is working correctly
- Always double-check that you did not break anything on the site after inserting the snippet.
It’s good practice to add the snippet to other themes in development as well and to add this snippet to your version control, so a theme switch does not kill website tracking
- Check that your pixel is working correctly by generating some
$page_load
,Viewed Product
andViewed Collection
events by visiting the store and seeing that these events arrive in the Source Log.
Create a new Client Source in Converge
- In Converge, click on Create a new source
- Pick Client-side from the modal
- Name your pixel: e.g.
{Storename} Checkout
Install the Converge Checkout as an extension in Shopify Customer Events
- Click on your newly created Source and from the modal pick
Shopify Custom Pixel
, and copy that snippet. - In the Shopify Admin dashboard, navigate to Settings > Customer Events
- Click on Add custom pixel.
- Name your pixel, e.g.
Converge Pixel
- Paste the script from the web app here.
- Click on Save Pixel
- Click on Connect Pixel
Verify that the integration is working correctly
-
Check that your pixel is working correctly by generating some
Added To Cart
,Started Checkout
andAdded Payment Info
events by visiting the store and seeing that these events arrive in the Source Log.If you do not see
Added To Cart
,Started Checkout
andAdded Payment Info
events coming in, verify in your Custom Pixel settings whether you have set the Permission flag to Not required.
If you have multiple Shopify stores active in different countries, please check our guide on Shopify Internationalization here.
The integration relies on Shopify Standard Events (see Shopify Standard Events for reference).
If you are using custom code to handle, for example, cart, checkout, or payment, it’s possible that the standard Shopify events will not be triggered or will have missing data. In those cases, you may need to implement the affected tracking events manually. See Manually instrumenting events for reference.
FAQ
Event Spec
This integration auto-tracks the following events on the browser with all properties available according to the Converge Event Spec.
Event Name | Event Description | Integration |
---|---|---|
PageView | When a customer views a page. | Storefront |
Viewed Product | When a customer views a product. | Storefront |
Viewed Collection | When a customer views a collection of products. | Storefront |
Added To Cart | When a customer adds an item to cart | Checkout |
Started Checkout | When a customer initiates the checkout process. | Checkout |
Added Payment Info | When a customer adds their payment info on the checkout. | Checkout |
Subscribed To Newsletter | When a customer subscribes to your newsletter. | Checkout |
Placed Order | When a customer places an order. | Checkout |
This integration also auto-tracks some additional events that are not part of the Converge Event Spec.
Event Name | Event Description | Integration |
---|---|---|
Added Contact Info | When a customer fills in the contact information in the checkout | Checkout |
Added Shipping Info | When a customer fills in their shipping info in the checkout | Checkout |
Utility Object
Converge exposes a utility object called __cvg_shopify_info
that picks up useful event properties and profile properties automatically.
We give an example below of requesting this object and what it looks like in the code example below.