Google Analytics ID Synchronization

Note: The codes shown below should all go under the container tag.

This guide will show how to integrate the Analytics user ID with the Retargetly ID. To achieve this, you must implement a JavaScript code with this format:

<script>
function
getCookie(name) {
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}

var analytics_id = getCookie("_ga");

if(analytics_id) {
_rely.push({'external_id': analytics_id});
_rely.send();
}
</script>

The format is as follows:

- Password: external_id

- Value: (analytics ID obtained automatically)

How did we do?

Getting Retargetly's web cookie user id

Impressions, Clicks and Conversions implementation in DCM

Contact