Simply installing the basic tag above is not enough to aggregate behavioral data such as purchase completion and cart addition, which are common on e-commerce sites.
Therefore, if you also want to check event data and conversion data on Ptengine, we also recommend setting up events.
Implementing Event Collection Tags
1. Select "Settings" in the Shopify Admin Dashboard
2. Select "Customer events"
3. Set a Pixel Name
Click the black "Add custom pixel" button in the top right, and set the pixel name in the popup. (In the figure below, we have set it to "pt tracking on checkouts" as an example)
Then click "Add pixel".
4. Save
Paste the code below in the Code section, and save by clicking "save" in the top right.
DANGER
⚠️ Caution
Be sure to replaceconst sidwith your own Ptengine project ID!!!
5. Publish
Finally, click the "Connect" button in the top right to publish the code set in Step 4.
About Event Tag Firing Timing
Important Notes
When using Ptengine with Shopify, please be sure to check the following points.
1. Please install the Ptengine basic tag directly in "Shopify themes"
Please install the Ptengine basic tag directly in Shopify themes (theme.liquid).
Installing via Google Tag Manager may not allow event measurement due to Shopify's specifications.
Therefore, we do not recommend installing through tag managers such as GTM, and it is outside the scope of support.
2. Do not add page-by-page transmission restrictions or conditions
We do not recommend modifying the Ptengine basic script to fire only on specific pages or restricting firing based on URL conditions.
Please understand that we cannot investigate the cause or provide support for any data measurement issues that occur in such cases.
3. If you change the theme, you need to reinstall the tags
In Shopify, when you change a theme, the contents of theme.liquid are reset.
Therefore, if you switch themes or apply a new theme, please reinstall the Ptengine basic tag in the new theme as well.
Please note that if you do not reinstall the tag, Ptengine measurement will not be performed.