This article will cover the steps necessary to connect Fastr (or the legacy platform, Creator Studio) with GA4, specifically when implemented with GTM. The first step is to contact support@zmags.com and your CSM, and request for this implementation to be set-up. Our team will responded by providing a 1x1 pixel experience that must be embedded on your site. After you receive this embed code, you can proceed with the steps below.
If you are looking for our article on integrating via GTAG, please visit this article.
For GA4 set up via GTM, there are two tags that will need to be set up:
Base Tag -
This should be a simple tag that adds the script below to the site. The below is a pixel managed within your own Fastr account that adds the unique event listeners for clicks on Fastr content.
-
Custom HTML tag: In this HTML block, you'll want to insert the embed code that was sent over by our support team. This should be a script that references the 1x1 pixel experience from your account.
-
Trigger: Fire on all pages
GA4 Custom Event Tag - Fastr
This is where the integration gets a bit more complex as the parameters sent along in the custom events need to be mapped out within GTM. Here are the necessary steps:
Step 1: Create New Variables
-
Go to "Variables" on the left-hand menu.
-
Under "User-Defined Variables," click "New."
Create the following variables by selecting the variable type as "Data Layer Variable":
- fastr_exp
- fastr_exp_type (if used)
- fastr_int
- fastr_scene
- fastr_url
For each variable:
-
Set the "Data Layer Variable Name" to match the variable name (e.g., "fastr_exp" for the first one).
-
Click "Save."
Step 2: Create New Trigger
-
Go to "Triggers" on the left-hand menu.
-
Click "New" to create a new trigger.
-
Choose "Trigger Type" as "Custom Event."
-
Enter "Event name" as "fastr."
-
Click "Save."
Step 3: Create New Tag
-
Go to "Tags" on the left-hand menu.
-
Click "New" to create a new tag.
-
Set up your tag with your desired configuration. (e.g., if you are sending data to Google Analytics, choose "Universal Analytics").
-
Choose "Track Type" according to your needs (e.g., "Event").
-
Configure the tag settings and under the event tracking parameters, use the variables you've set up. You can put {{fastr_exp}}, {{fastr_int}}, {{fastr_scene}}, {{fastr_url}} in the respective fields.
-
Under "Triggering," choose the "fastr" trigger you created.
-
Click "Save."
Comments
0 comments
Please sign in to leave a comment.