Hi --
Where can I find the documentation for leveraging the web page beacon?
In particular, here's what I'm trying to accomplish:
* I have an HTML page that can be called with a pageId query string variable
* The pageId var determines the content rendered in the HTML page (this is javascript based)
* I'd like the web beacon to report to SC with a different page name (s.pageName) based on the content that's been loaded.
Can I delay the reporting to SC until the page is fully rendered and JS has had a chance to set the s.pageName var?
Thanks in advance for your help.
Best,
Martin Rio
Martin,
This is exactly how the JavaScript library works. All you need to do is include the getQueryParam() plugin in the s_code file and from the do_Plugins function call getQueryParam().
s.pageName = s.getQueryParam("pageId");
No reason to delay anything. do_Plugins will be called before the image request and since the query string is present you don't need the page to fully render.
Lamont