Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Add data to the built in Adobe Analytics Connector integration?

lukkyluke
Level 3
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
DavidKangni
Correct answer by
Community Advisor
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

View solution in original post

12 Replies
DavidKangni
Community Advisor
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

pradeep_07
Level 4
Level 4
Hey David, I can see above code, but unable to edit since it is an in built code.
DavidKangni
Community Advisor
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

 

pradeep_07
Level 4
Level 4
Thanks David, This really help. Also can we update the custom tag present in each delivery?
pradeep_07
Level 4
Level 4
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.
wodnicki
Community Advisor
Community Advisor

Hi,

 

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

 

Thanks,

-Jon

lukkyluke
Level 3
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?

wodnicki
Community Advisor
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.
pradeep_07
Level 4
Level 4
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.
DavidKangni
Correct answer by
Community Advisor
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

View solution in original post