- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
09-02-2016 12:30 PM
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.
09-02-2016 04:34 PM
09-03-2016 08:19 PM - edited 09-03-2016 08:20 PM
@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?
09-05-2016 06:41 AM
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
09-05-2016 11:11 AM
@adrian_browning Thank you! We already did that. Probably sometime next week we may hear back from Tealium Support.
09-06-2016 07:41 PM
09-07-2016 02:27 AM
@vdevaraj I will direct message you, with the screenshots.
Adrian
Copyright All Rights Reserved © 2008-2023