Checking what your SDC tags are sending
Here’s an easy way to see what SDC is sending to your SDC server, for any SDC-tagged page your browser is looking at. Enter this in the address bar and hit Enter:
javascript:alert(gImages[0].src);
For the same thing, but cut-and-pasteable, do:
javascript:document.write(gImages[0].src);
Bookmark them so you can quickly do it anytime, on any page your browser is on.
If they don’t work, you may be using the unsupported Advanced Tag. Try:
javascript:alert(dcsInit.images[0].src);
javascript:document.write(dcsInit.images[0].src);
Or, the TagBuilder Tag: (mid-2008)
javascript:alert(_tag.images[0].src);
javascript:document.write(_tag.images[0].src);
Or, the TagBuilder Tag with the dcsDebug function (January 2009)
javascript:_tag.dcsDebug()
The last one is nice – all the parameters are listed on their own lines. It displays in a popup window, so it will be blocked unless you turn off popup blocking.






3 comments
I like the way you wrote this. Very helpful.
Now my question. The code you provided implies I have the older tag. So, any idea how I got the older tag and what my re-course is to use the newer tag?
My tag is from 8.0d installation with the SDC running Apache on Solaris. Did I miss an update as I thought when I installed 8.0, I got the new tag and that the older tag came from 7.# installs?
– Dave
Good point. The “old tag” part should’ve been first because it’s what most people use. The posting has been revised.
We will write something about the Advanced Tag in this blog very soon. Since we’re outsiders, anything is fair game. Stay tuned.
You can also download a Firefox add-on called ‘Httpfox’ that gives you a live view of your page requests. This allows you to examine the query string associated with the SDC tag. The advantage over the method above is it breaks it down into a more readable list of name value pairs.
Leave a Comment