Documentation You are here: start » v » 2.0 » analytics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
v:2.0:analytics [2025/09/05 13:30] – [Google Tag Manager] adamv:2.0:analytics [2025/09/05 13:34] (current) – [Google Tag Manager] adam
Line 110: Line 110:
  
 If you want to add custom tracking for GTM to pass through additional values than what Google Analytics/Ads needs - for example for other integrations - you can do that using the ''analytics-gtm-datalayer'' JS event. You can see details on using this event [[.:javascript#eventswhat_they_are_and_how_to_use_them|within our javascript events documentation]]. If you want to add custom tracking for GTM to pass through additional values than what Google Analytics/Ads needs - for example for other integrations - you can do that using the ''analytics-gtm-datalayer'' JS event. You can see details on using this event [[.:javascript#eventswhat_they_are_and_how_to_use_them|within our javascript events documentation]].
 +
 +As a quick example, this would add an additional parameter called ''foo'' with a value of ''bar'' to be sent with the dataLayer's data:
 +
 +<code javascript>
 +FC.client.on('analytics-gtm-datalayer', function(params) {
 +    params.event_data.foo = "bar";
 +});
 +</code>
  
 === GTM Screenshots === === GTM Screenshots ===

Site Tools