Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Silver Contributor
Silver Contributor

We have added this plugin to the SiteCatalyst code exactly as mentioned by Adobe:

 

https://marketing.adobe.com/resources/help/en_US/sc/implement/getPercentPageViewed.html

 

While all other Adobe plugins work, the percentage page view does not seem to pass the value to our s.props. Any thoughts or ideas would be much appreciated. Thanks.

6 REPLIES 6
Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Employee Emeritus

Hi @vdevaraj,

 

I've seen this plugin fire/set the eVars/props as needed on the subsequent pageviews/refreshes.  Do you still not see it when refreshing the page?

Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Silver Contributor
Silver Contributor

@meng_lim unfortunately no - its not firing. The report has no data. We have had this implementation for the last two years. While all the other plugins are working normal, the percentage page viewed does not fire.

 

We have the percentage page viewed plugin in one sitecatalyst extension and the doPlugins function in another sitecatalyst extention. Within the doPlugins function we invoke the percentage pageviewed plugin and pass the value to a prop:

 

s.prop64 = s.getPreviousValue(s.pageName, 's_ppn');
s.prop65 = s.getPercentPageViewed();
if(!s.prop64 || s.prop64 == 'no value')
s.prop65 = '';

 

The percentage page viewed plugin that we have has the following code:

s.getPercentPageViewed=new Function("pid","" + "pid=pid?pid:'-';var s=this,ist=!s.getPPVid?true:false;if(typeof(s.l" + "inkType)!='undefined'&&s.linkType!='0'&&s.linkType!='e')return'';va" + "r v=s.c_r('s_ppv'),a=(v.indexOf(',')>-1)?v.split(',',4):[];if(a&&a." + "length<4){for(var i=3;i>0;i--){a[i]=(i<a.length)?(a[i-1]):('');}a[0" + "]='';}if(a)a[0]=unescape(a[0]);if(ist){s.getPPVid=(pid)?(pid):(s.pa" + "geName?s.pageName:document.location.href);s.c_w('s_ppv',escape(s.ge" + "tPPVid));if(window.addEventListener){window.addEventListener('load'" + ",s.handlePPVevents,false);window.addEventListener('scroll',s.handle" + "PPVevents,false);window.addEventListener('resize',s.handlePPVevents" + ",false);}else if(window.attachEvent){window.attachEvent('onload',s." + "handlePPVevents);window.attachEvent('onscroll',s.handlePPVevents);w" + "indow.attachEvent('onresize',s.handlePPVevents);}}return pid!='-'?a" + ":a[1];");

 

Are we missing anything here? 

Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Tealium Employee

@vdevaraj

 

Have you confirmed that your doPlugins code is actually being called?

I have just found a page, and there was an error stopping the doPlugins from firing.

Additionally, once that error was fixed, there is an error in your doPlugins, that stops after the first line.

 

I would recommend creating a support ticket here : https://community.tealiumiq.com/t5/custom/page/page-id/support-contact-form

So that someone can help debug on your site, and help you resolve these errors.

 

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.
Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Silver Contributor
Silver Contributor

@adrian_browning Thank you! We already did that. Probably sometime next week we may hear back from Tealium Support.

Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Silver Contributor
Silver Contributor
@adrian_browning what page of ours did you see this happen? Would you be able to share a screenshot of what you noticed happen on our page?
Highlighted

We have integrated SiteCatalyst with Tealium. How can I get the percent page viewed plugin to work?

Tealium Employee

@vdevaraj I will direct message you, with the screenshots.

 

Adrian

Ask me anything Tealium related or Javascript, or NodeJS.
Please remember to mark solutions as accepted for future searchers.