Expand my Community achievements bar.

SOLVED

Is this possible - Linking > Google Analytics (Segments) and Adobe Target (A/B Testing)?

Avatar

Level 2

Hello,

 

We use Google Analytics to track the traffic and are exploring tools for doing A/B Testing.

 

Can we link Google Analytics and Adobe Target?

 

Scenario : We want to use Google Analytics Segments for Targeting (using Adobe Target). Is this possible?

 

GA - Adobe Target.png

Reference Link : https://www.blastanalytics.com/blog/adobe-target-vs-google-optimize-360-testing-personalization

 

Cheers

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Level 4

I don't know of a step-by-step, but the following documentation is probably the closest that it gets as far as I know. 

 

https://experienceleague.adobe.com/docs/target/using/administer/response-tokens.html?lang=en#section...

View solution in original post

6 Replies

Avatar

Level 2

Hi,

 

You can integrate Google Analytics and Adobe Target--I'm leading project on this integration at my company

 

Thanks

 

 

Avatar

Level 2

Thanks @rc211 for your reply 

 

Is the Integration process (Google Analytics and Adobe Target) simple or a bit complex (Coding required)?

 

Thanks

Avatar

Level 4

There really isn't an official integration between Adobe Target and Google Analytics. You can always use something like the following after you fire your global Mbox to send Adobe Target activity data to the Google Tag Manager datalayer--or modify it to send Google Analytics events directly if installed on page. 

 

document.addEventListener(adobe.target.event.REQUEST_SUCCEEDED, function (e) {
    var tokens = e.detail.responseTokens;

    if (isEmpty(tokens)) {
        console.log("No active Adobe Target activity.");
        return;
    } else {
        var uniqueTokens = distinct(tokens);
        uniqueTokens.forEach(function (token) {
            window.dataLayer.push({
                'event': 'adobeTargetMetaData',
                'CampaignName': token["activity.name"],
                'CampaignId': token["activity.id"],
                'RecipeName': token["experience.name"],
                'RecipeId': token["experience.id"],
                'OfferId': token["option.id"],
                'OfferName': token["option.name"],
                'MboxName': e.detail.mbox
            });
        });
    }

    function isEmpty(val) {
        return (val === undefined || val == null || val.length <= 0) ? true : false;
    }

    function key(obj) {
        return Object.keys(obj)
            .map(function (k) {
                return k + "" + obj[k];
            })
            .join("");
    }

    function distinct(arr) {
        var result = arr.reduce(function (acc, e) {
            acc[key(e)] = e;
            return acc;
        }, {});

        return Object.keys(result)
            .map(function (k) {
                return result[k];
            });
    }
})

Avatar

Level 2

Thanks Zach.

 

It's not that easy as I though it would be (for a non-technical professional like me)

 

I know a bit of Tag Manager but not Data Layer in depth.

 

I guess I need to figure out my use cases with solution mentioned in this How to Use Google Optimize & Tag Manager for Personalization 

 

If any other alternate solution is there (where Coding is not involved) or with Coding with easy Step-by-step procedure (any article you might have come across), pls let me know.

 

Thanks once again for your help.

 

Cheers

Avatar

Correct answer by
Level 4

I don't know of a step-by-step, but the following documentation is probably the closest that it gets as far as I know. 

 

https://experienceleague.adobe.com/docs/target/using/administer/response-tokens.html?lang=en#section...