Google Analytics 4 Setup

Created by Stefan Perchinkov, Modified on Wed, 26 Feb at 9:07 AM by Stefan Perchinkov

The existing workflow action for Google Analytics in the Referins system includes both Google Analytics 4 and Universal Analytics, which means that users can choose to use either platform or both to track their marketing campaigns and website traffic. This provides a more flexible and integrated approach to tracking and analyzing user behavior, which can help businesses make data-driven decisions to improve their marketing strategies and user experience.

Step 1: Access Referins Account

Ensure you have an active account with Referins. 

Step 2: Navigate to Workflows

Once logged in to Referins, navigate to Automation and then to the Workflows section from the main dashboard.

Step 3: Create or Select a Workflow

Either create a new workflow or select an existing one where you want to integrate Google Analytics 4.

Step 4: Add a Google Analytics Action

Within the selected workflow, locate the action section. Click on "Select Action" or the (+) icon to add a new action.

Step 5: Choose Google Analytics Action Type

In the action type dropdown menu, select "Google Analytics 4" from the available options.

Step 6: Enter Measurement ID

Retrieve the Measurement ID from your Google Analytics account. Access Google Analytics, go to Account Settings, then Data Streams. Select the appropriate data stream, and copy the Measurement ID.

Step 7: Paste Measurement ID

Back in Referins workflow, paste the copied Measurement ID into the designated field for Measurement ID.

Step 8: Obtain API Secret

In Google Analytics, navigate to Admin > Account Settings > Data Streams. Select the relevant data stream, then click on "Measurement Protocol API Secrets." Create a new API secret key, give it a nickname, and copy the value.

Please Note:

Before an API Secret can be created you need to acknowledge that you have completed the necessary privacy discussions and right from your end users for the collection and processing of data.

*

Step 9: Add API Secret

Paste the copied API secret value into the corresponding field within the Referins workflow.

Step 10: Configure Workflow Conditions

Set up workflow conditions based on your requirements. For instance, define actions triggering Google Analytics tracking, such as form submissions, appointment bookings, or other relevant events.

Step 11: Save and Test

Once all configurations are complete, save the workflow. Test the integration by performing the specified actions within your CRM to ensure that data is correctly tracked and sent to Google Analytics.

Step 12: Monitor and Analyze

After implementation, regularly monitor your Google Analytics dashboard to analyze CRM-related metrics, such as user interactions, conversions, and engagement.

Create a Google Analytics event that you want to track

You can Add the event name that you wish to track. This event name will show up under the Google Analytics dashboard along with other standard events that are set up.

When setting up events, ensure they align with your business goals and tracking strategy to make the most out of your analytics data. Customize event parameters to capture specific details relevant to your campaigns.

Configuring Enhanced Measurement Settings

In your Data Stream settings, make sure that Enhanced Measurement is enabled. This setting helps automatically collect additional data, such as scroll tracking, outbound link clicks, and more, which can provide deeper insights into user interactions on your website.

Troubleshooting Common Issues

If you encounter issues where events are not showing up in Google Analytics, ensure that your Measurement ID and API Secret values are correctly entered without spaces or formatting errors. Additionally, verify that the correct event names are used and that no filters are blocking data in your Google Analytics account.

Testing Events Before Publishing

Before publishing the workflow, it's recommended to test the events by triggering them manually or through a test environment to ensure they are being tracked correctly in Google Analytics. Check the Google Analytics dashboard under the "Realtime" tab to confirm that your events are firing as expected.

Enabling Data Retention Settings

To maximize the data available for analysis, adjust your data retention settings in Google Analytics. Navigate to Admin ➝ Data Settings ➝ Data Retention and select the retention period that best fits your analysis needs, such as 14 months, and ensure the 'Reset on new activity' option is enabled to extend data retention on user interactions.

Please Note: Before an API Secret can be created, you need to acknowledge that you have read and understood Google's privacy disclosures regarding the collection of user data.

Then click on Create if no API Secret has already been created. Name your API secret and then hit Create, and a Secret Value will be generated for it automatically.

Copy the Secret Value from here and paste it into the API Secret field in the Google Analytics action in your Workflow.

Please Note: Make sure there is no space before or after when you paste your API Secret value into the workflow's field, or your Google Analytics action will fail.

Save Action and then Save the Workflow. Publish if you are ready to use it.

 FAQs

Q: How do I set up Google Analytics 4 in workflows?
To set up Google Analytics 4, go to your workflow and choose 'Add to Google Analytics' under the action type. Select 'Google Analytics 4' from the dropdown, enter your Measurement ID, and configure the desired event names and API Secret values. Ensure Enhanced Measurement settings are enabled in your Data Stream for additional insights.

Q: What should I do if events are not appearing in Google Analytics?
If events are not showing up, double-check that the Measurement ID and API Secret are entered correctly without spaces. Verify that the event names match those configured in your workflow, and ensure that no filters are blocking data in your Google Analytics settings.

Q: How can I test my events before publishing the workflow?
You can test your events by manually triggering them or using a test environment. Check the 'Realtime' section in your Google Analytics dashboard to confirm that the events are being tracked as expected before publishing the workflow.

Q: What are Enhanced Measurement settings, and why are they important?
Enhanced Measurement settings automatically collect additional data, like scroll tracking and outbound link clicks. Enabling these settings in your Data Stream provides deeper insights into user behavior, which can help optimize your marketing strategies.

Q: How should I manage API Secret expiration and security?
API Secrets may have expiration periods or security requirements that necessitate regular updates. Periodically review and update your API Secret to ensure continued functionality of your Google Analytics integration.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article