Capture Google Analytics Client ID and Store in Marketo

  Analytics

This script automatically captures your website visitors’ Google Analytics (GA) Client ID and populates a hidden form field with this ID.
You can use this ID in Marketo to append offline data and interactions to your standard GA reports and dashboards.

Note: You need to first create a new custom String field in Marketo called GA Client ID (API Name: ‘gaClientId’).

See these articles for more details:

About the Google Analytics client ID

A Comprehensive Guide to Tracking Offline Interactions in Google Analytics using the Measurement Protocol

Source Code

Minified

Full

LEAVE A COMMENT