Expand my Community achievements bar.

Announcing the launch of new sub-community for Campaign Web UI to cater specifically to the needs of Campaign Web UI users!
SOLVED

Add data to the built in Adobe Analytics Connector integration?

Avatar

Level 3

Hi all,

We have 5 different instances of Adobe Campaign Classic. 4 of them contain one brand in each, and the 5th contains 10 brands.
We're using the builtin Adobe Analytics connector to send delivery data to analytics, but we can't seem to split the data based on sub-brand. We would like to see the 14 different brands separately in the reports. Is it possible to add custom data to this kind of integration? One extra column with brandName would be enough
 
Is this something that can be done with the built in connector, or will it have to be extended or built custom from scratch?
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

To pass the other parameters, you can do it via URL or via API calls that gets sent from Campaign.

If it's via the URL then , enriching the formula in the external account is the only option.

If you want to pass on parameters other than the URL , You need to customize the js code which pulls the data to send by default.

This is the JS code nms:adobeGenesisConnection.js

and here is the part that captures the data to be sent to Analytics.

AdobeGenesisConnection.prototype.sendMetrics = function (tableName)
{
var columnNames = new XMLList()
columnNames += <item>Date</item>
columnNames += <item>Message ID</item>
columnNames += <item>Scheduled</item>
columnNames += <item>Processed</item>
columnNames += <item>Sent</item>
columnNames += <item>Opened</item>
columnNames += <item>Unique Opens</item>
columnNames += <item>Clicked</item>
columnNames += <item>Person Clicks</item>
columnNames += <item>Unique Clicks</item>
columnNames += <item>Unsubscribed</item>
columnNames += <item>Total Bounces</item>

You may duplicate this JS file , add the fields you want and have the duplicated JS called in the workflow Sending of indicators and campaign attributes

 

Thanks

David



David Kangni

View solution in original post

12 Replies

Avatar

Community Advisor

Hi Lukkyluke,

 

To pass other parameters, you can do it via URL or via API calls that gets sent from Campaign.

  1. If it's via the URL then, enriching the formula in the external account is the only option.

  2. If you want to pass on parameters other than the URL , You need to customize the js code which pulls the data to send by default.

    This is the JS code nms:adobeGenesisConnection.js

    and here is the part that captures the data to be sent to Analytics.

    AdobeGenesisConnection.prototype.sendMetrics = function (tableName)
    {
    var columnNames = new XMLList()
    columnNames += <item>Date</item>
    columnNames += <item>Message ID</item>
    columnNames += <item>Scheduled</item>
    columnNames += <item>Processed</item>
    columnNames += <item>Sent</item>
    columnNames += <item>Opened</item>
    columnNames += <item>Unique Opens</item>
    columnNames += <item>Clicked</item>
    columnNames += <item>Person Clicks</item>
    columnNames += <item>Unique Clicks</item>
    columnNames += <item>Unsubscribed</item>
    columnNames += <item>Total Bounces</item>

    You may duplicate this JS file , add the fields you want and have the duplicated JS called in the workflow Sending of indicators and campaign attributes

Thanks,

David



David Kangni

Avatar

Level 6
Hey David, I can see above code, but unable to edit since it is an in built code.

Avatar

Community Advisor

duplicate this JS file (i recommend to use your client namespace), add the fields you want and have the duplicated JS called in the workflow Sending of indicators and campaign attributes

DavidKangni_0-1594694968033.png

 



David Kangni

Avatar

Level 6
Thanks David, This really help. Also can we update the custom tag present in each delivery?

Avatar

Level 6
What i was trying to do is update this Tag 1 , Tag2, Tag 3 dynamically using post method and do bulk update. Not sure this is possible or not.

Avatar

Community Advisor

Hi,

 

Add the brand col to AdobeGenesisConnection.prototype.sendAttributes() in nms:adobeGenesisConnection.js.

 

Thanks,

-Jon

Avatar

Level 3

Hi Jon and thanks for your reply, I didn't know that it is possible to modify built in js-code. It says "This is an application built-in object. It cannot be modified". How do I edit this file? Just overwrite it directly on the linux-server? If yes, will this change be overwritten on every build upgrade?

Avatar

Community Advisor
That check is only done on the client, and it's pretty crude: if in nms, crm, xtk namespace, show warning and hide save button. You can edit by changing the namespace to nmsx, making changes, then changing back to nms and saving. Alternatively, make your own copy of the relevant js libs adjacent and call that from the workflow instead. Editing the file on disk will do nothing since when the js is used it'll overwrite it from the copy on the db. None of this will survive an upgrade, so you'll have to merge by hand afterward.

Avatar

Level 6
Hi Jon, Adding the attribute name is enough or anything else need to be changed in the code? and also where exactly it need to be called in the workflow? am not able to identify the function name.

Avatar

Correct answer by
Community Advisor

To pass the other parameters, you can do it via URL or via API calls that gets sent from Campaign.

If it's via the URL then , enriching the formula in the external account is the only option.

If you want to pass on parameters other than the URL , You need to customize the js code which pulls the data to send by default.

This is the JS code nms:adobeGenesisConnection.js

and here is the part that captures the data to be sent to Analytics.

AdobeGenesisConnection.prototype.sendMetrics = function (tableName)
{
var columnNames = new XMLList()
columnNames += <item>Date</item>
columnNames += <item>Message ID</item>
columnNames += <item>Scheduled</item>
columnNames += <item>Processed</item>
columnNames += <item>Sent</item>
columnNames += <item>Opened</item>
columnNames += <item>Unique Opens</item>
columnNames += <item>Clicked</item>
columnNames += <item>Person Clicks</item>
columnNames += <item>Unique Clicks</item>
columnNames += <item>Unsubscribed</item>
columnNames += <item>Total Bounces</item>

You may duplicate this JS file , add the fields you want and have the duplicated JS called in the workflow Sending of indicators and campaign attributes

 

Thanks

David



David Kangni