How to Integrate with Google Analytics
Click on Integrations and then on Google Analytics in your Prefinery account and enter your unique Google Analytics UID in the field and click Save.
In addition to adding your Google Analytics UID in Prefinery, you will need to make changes to the Google Analytics (or Google Tag Manager) configuration on your site.
Universal Analytics Configuration
Google's analytics.js library uses a unique client ID to determine whether a user is new or returning. To share this client ID across domains (i.e. between your domain and ours) you will need to modify your Google Analytics tracking snippet installation on your website and set the allowLinker
field to true
when creating the tracker.
ga('create', 'UA-XXXX-Y', 'auto', { 'allowLinker': true });
For more information see Google's documentation on Measurement across multiple domains (analytics.js).
Google Analytics 4 Configuration
Google's gtag.js library uses a unique client ID to determine whether a user is new or returning. To share this client ID across domains (i.e. between your domain and ours) you will need to modify your Google Analytics tracking snippet installation on your website as follows:
gtag('config', 'GA_MEASUREMENT_ID', { 'linker': { 'accept_incoming': true } });
For more information see Google's documentation on how to Measure activity across domains.
Google Tag Manager Configuration
Note: Prefinery has tested our Google Analytics integration with Google Tag Manger's "Google Analytics: Universal Analytics" Tag, but not the "Google Analytics: GA4" Tag.
You will need to make a change to your Google Analytics Settings Variable in order to configure cross domain tracking. For more information, see Google's documentation on how to Measure activity across domains in order to add the allowLinker
field and the i.prefinery.com
domain to the list of Auto Link Domains. The Google Analytics Settings Variable associated with your Google Analytics Universal Analytics Tag should end up looking similar to the following:
DIY Configuration
You can opt to ditch Prefinery's built-in Google Analytics integration and Do It Yourself. This will give you control over which events are sent to Google Analytics, and their properties. To do this, follow these steps:
- Click on Integrations and then on Google Analytics.
- Clear the value in the UID field, if it is set, and click Save.
- Click on Integrations and then on Code Injection.
- Copy your Google Analytics tracking code into the Head Code field and click Save.
- To send an event to your Google Analytics account when the Signup Form is viewed, click on Signup Form and then on the JS tab, and enter your code (wrapped in a script tag) into the Impression Tracking Code field and click Save.
- To send an event to your Google Analytics account when the Signup Form is submitted, click on Signup Form and then on the JS tab, and enter your code (wrapped in a script tag) into the Conversion Tracking Code field and click Save.
What events are sent to Google Analytics?
If you are using our built-in Google Analytics integration, and not the DIY approach as described above, then we will automatically send page views and events to your Google Analytics account as described below. The {{PROJECT NAME}} value is what you have named your project on the Settings > Project Settings page in your Prefinery account.
Signup Form
page view | /Prefinery/{{PROJECT NAME}}/ApplicationForm |
event | Prefinery » View » {{PROJECT NAME}} Application Form |
event | Prefinery » Submit » {{PROJECT NAME}} Application Form |
Viral Referral Page
page view | /Prefinery/{{PROJECT NAME}}/ViralInvitePage |
event | Prefinery » View » {{PROJECT NAME}} Viral Invite Page |
Don't filter out events from our domain
As the events we send will come from our domain, prefinery.com, please ensure that your Google Analytics account is not filtering out events from domains other than your own.
Add our domain to the Referral Exclusion List
If you want to be able to measure a single session across multiple domains and prevent having your own domain show up as the referrer, you need to add the domains to the i.prefinery.com
domain to the referral exclusion list.