To push GA Connector info to GTM data layer, use the following JavaScript code:
1 2 |
var gaconnectorInfo = gaconnector.getCookieValues(); dataLayer.push( gaconnectorInfo ); |
To make sure that GA Connector is fired by the time this script is run, use the tag sequencing functionality provided by Google Tag Manager:
It allows to set the script from the article to fire after GA Connector.