Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Campaign Tracking Reporting on an Angular 2 site

Avatar

Level 4

We have a text link on the home page of our main site jstor.org. The text link "text analyer" Beta goes to an Angular 2 site. For the month of February, the click-throughs were 7,675, but the page views for text analyzer home page 4,424. Can someone explain why the big difference. If this helps, I implemented the page level tracking using pushState.

 

Thank you

1 Accepted Solution

Avatar

Correct answer by
Level 5

Try this - 
Within Campaign click-throughs report, Break Down by Pages (Site Content -> Pages) report & see if other pages (apart from "text analyzer home page") are recording the campaign tracking code value.
On the text analyzer home page, I tried to drag the "DAILY" document & could see the campaign tracking code being recorded for the pages "text analyzer progress" & "text analyzer results". This seems to be the potential reason for the issue you are reporting. 
I believe you'll need to clear campaign tracking variable after home page tracking request so that it does not propagate to subsequent tracking requests.

Let me know what you found.

Regards,
Saurabh Kumar.

View solution in original post

5 Replies

Avatar

Correct answer by
Level 5

Try this - 
Within Campaign click-throughs report, Break Down by Pages (Site Content -> Pages) report & see if other pages (apart from "text analyzer home page") are recording the campaign tracking code value.
On the text analyzer home page, I tried to drag the "DAILY" document & could see the campaign tracking code being recorded for the pages "text analyzer progress" & "text analyzer results". This seems to be the potential reason for the issue you are reporting. 
I believe you'll need to clear campaign tracking variable after home page tracking request so that it does not propagate to subsequent tracking requests.

Let me know what you found.

Regards,
Saurabh Kumar.

Avatar

Level 4

I did notice other pages were recording the campaign code in the pages report. Thank you very much for confirming the issue. I do clear the page and event tracking, but never thought to clear the campaign code.

 

Thank you,

Bill

Avatar

Level 4

How do I clear the var0 (campaign variable) from reporting on the non-landing page? I've tried clear vars, but the campaign variable is not being passed through to the var0 on the landing page.

Avatar

Level 5

With your case, I think, within DTM rule set "Page URL" field value to %window.location.href%.
That ways you won't have "cid" URL parameter in page view tracking request for non-landing pages & hence campaign variable won't get recorded there.

Let me know if it helps.

Regards,
Saurabh Kumar.

Avatar

Level 5

To specifically reset/ clear campaign variable, you can code s.campaign="";

You may also refer https://marketing.adobe.com/resources/help/en_US/sc/implement/campaign.html

 

Saurabh.