In this article, you will learn to integrate Google Analytics (GA) to track events and actions on your PageFly pages. Before you start, we recommend that you have GA set up in your store.
Step 1: Install GA tracking code into Shopify store
First, log in to your GA account. Then, select Admin > Property Settings > copy the Tracking ID (UA-xxxxxxxx-x) to clipboard.
In a new tab, go to Shopify admin > Sales Channels > Online Store > Preferences > paste tracking ID to Google Analytics parameter.
Step 2: Set up the code into PageFly page
|Select an element and:
Here, you can also setup Facebook pixel integration.
Step 3: Make sure event firing properly
Let’s say, we have the Add to Cart button called “Help Alex & his friends” with GA event setup as “Help Alex”.
- In GA, go to Reports > Real-time > Events.
- Go to your page and click on the button.
- Then go back to GA and you can see the name of the page and event action.