mardi 22 novembre 2016

Using pub/ sub to generate adobe tracking code across a site

I'm looking to use pub/sub messaging to implement adobe tracking across a site that uses a range of technologies. I'm suggesting to use pub/sub because different webpages across the website are written in different technologies, ranging from webforms, mvc and angular. The pub/sub approach seems very lean and keeps the amount of code to a minimum without polluting the existing code.

The tracking code needs to include a variable digitaldata that encapsulates the page statistics, i.e. locale, environment etc..

Are there any concerns/ known problems with using pub/sub, particularly to generate the tracking object?

Many thanks,

Tracking code example

var digitalData = {
    locale: "en",
    environment: "production"
};

Thanks,

Aucun commentaire:

Enregistrer un commentaire