For any additional tags or specific requirements, please consult with us at support@appfront.ai.
GTM Set-Up for Appfront
1. Creating a GA4 Configuration Tag:
Go to the Tags page in GTM and click New to create a tag.
Click inside the Triggering section and select All Pages - Page View.
Click inside the Tag Configuration section and choose Google Analytics: GA4 Configuration.
Paste your Measurement ID (see below for instructions to find it) and click Save.
Finding Your Measurement ID:
Open the Google Analytics dashboard and navigate to Admin → Data Streams.
Select your website and copy the Measurement ID.
2. Creating E-Commerce Event Tags:
Go to the Tags page and click New.
Click inside the Triggering section and create a new trigger for each event.
Select Custom Event under Trigger Configuration and set the event name:
add_to_cart, view_item, or purchase (create separate triggers for each).
Click inside the Tag Configuration section and choose Google Analytics: GA4 Event.
Configure the tag:
Configuration Tag: The GA4 configuration tag you created earlier.
Event Name: Match the trigger event name (e.g., add_to_cart).
Add event parameters (e.g., items, transaction_id, value) under Event Parameters:
Use Data Layer Variables to set the parameter values.
Save your tag configuration.
Supported Parameters:
add_to_cart, view_item:
itemspurchase:
items, transaction_id, affiliation, value, coupon, currency, shipping, tax
Integrate GTM with Appfront
Copy your GTM container ID from the GTM dashboard.
Log in to your Appfront portal and navigate to Configure → Applications → Tracking.
Scroll to the GTM and Google Ads section, and paste the container ID into the Tracking ID field.
Save your changes.
Testing and Publishing
Before testing, ensure you’ve:
Created all necessary Tags, Triggers, and Data Layer Variables.
Integrated GTM with Appfront.
Click Preview in GTM and perform a test purchase.
Verify data under the Variables tab for the triggered event.
Once validated, click Publish.







