s.campaign Value Not Receiving Credit for Success Events | Community
Skip to main content
haddnin
New Participant
April 26, 2018
Solved

s.campaign Value Not Receiving Credit for Success Events

  • April 26, 2018
  • 13 replies
  • 8020 views

I'm setting s.campaign in DTM (AppMeasurement) in a page load rule and have a couple of events that fire when a user starts/completes an online application. According to this article (https://marketing.adobe.com/resources/help/en_US/sc/implement/campaign.html), "Each campaign value remains active for a user, and receives credit for that user's activities and success events until it expires."

In my implementation, the s_campaign cookie set by s.getValOnce() is present when the events fire, but the Campaign Tracking Code report is not showing the events metrics giving credit to the campaign variable.

Here's my Custom Page Code in Page Load Rule:

/*

* Plugin: getValOnce_v1.11

*/

s.getValOnce=new Function("v","c","e","t",""

+"var s=this,a=new Date,v=v?v:'',c=c?c:'s_gvo',e=e?e:0,i=t=='m'?6000"

+"0:86400000,k=s.c_r(c);if(v){a.setTime(a.getTime()+e*i);s.c_w(c,v,e"

+"==0?0:a);}return v==k?'':v");

/* External Campaign Tracking */

if (s.Util.getQueryParam('cid')) {

  s.campaign = s.Util.getQueryParam('cid');

  s.campaign = s.getValOnce(s.campaign,'s_campaign',0);

}

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Waqas_Rafiq

Is the company going to continue using metrics.mydomain.com and smetrics.mydomain.com? If yes, then I would recommend to change your appmeasurement code to the following:

s_account = "reportsuiteid" //assuming these are the same across both codes

s.visitorNamespace = "" //should be the same for both codes

s.trackingServer = "metrics.yourdomain.com" //should be the same for both codes

s.trackingServerSecure = "smetrics.domain.com" //should be the same for both codes

If you have different values, you will have new visitors being registered and hence your s.campaign is not being set.

13 replies

Web_Analytics_N
New Participant
April 26, 2018

Hi there,

It could be because the plugin, getValOnce is no longer supported by the appmeasurement code.

AppMeasurement Plug-in Support
What are you trying to achieve with the getValOnce plugin? And is your main goal just to get your cid to stick to the s.campaign?

/Waqas

haddnin
haddninAuthor
New Participant
April 26, 2018

To add more context to my original problem above, here is an image of my reporting.

1. represents a dev environment where I'm using legacy Omniture H.26 s_code. You can see that while s.campaign is set, it's crediting "source_test_snap_9:23AM" Tracking Code with event "Applications Started".

2. - 6. represent migrating over to AppMeasurement via DTM. Here I'm setting s.campaign using getValOnce, but no credit is given to the Tracking Codes from the events Applications Started/Applications Completed.

jantzen_b
Employee
April 26, 2018

I've moved this to the Analytics community since it is primarily focused on the s.campaign variable and it's attribution rather than the actual deployment through DTM.