If you have a Webflow site with a template that has "e-commerce" features, even if not used, Pirsch may not work.
Adding Pirsch Analytics to Webflow
- Get your personal code snippet from the Integration Settings. We recommend the Pirsch Extended script to enable all features.
- In your Webflow project, go to Site settings > Custom code.
- Paste your Pirsch snippet in the Head code section.
- Click Save changes.
Make sure that the hostname of your Webflow page and the Pirsch Dashboard are the same, otherwise the page views will not be displayed.
Tracking Events in Webflow
The easiest way to track events in a Webflow is to use custom HTML attributes with the Pirsch extended script.
- In your Webflow project, select the element you want to track events with.
- Go to Element settings panel > Custom attributes.
- Click the + icon.
- Enter the name of your custom attributes following the event guide.
If the template has ecommerce features, Webflow seems to automatically check the box "Use global site tag (required for ecommerce event tracking)" in Integrations -> Google Analytics. This blocks Pirsch. The GA Site Tag field is locked in the "on" position. The user cannot turn it off.
To turn off the GA Site Tag field, first enter something in the Google Analytics Tracking ID field. Now you can disable the GA Site Tag button. Delete the tracking ID/character you entered and save the changes. Pirsch should now work as expected.
You will need to add the UA code to the site tag in a typical UA code format. After you've checked off the site tag box, be sure to delete the UA you entered. Otherwise, the code will remain live even if the button is turned off - so it needs to be deleted.