Doubleclick Spotlight tracking code

General ShopSite user discussion
Post Reply
Randy
Posts: 3
Joined: Sat Feb 10, 2007 3:13 pm
Location: usa

Doubleclick Spotlight tracking code

Post by Randy »

I need to add this DoubleClick tracking code to the “thankyou” page within my custom template. My problem is that the variables "Cost" and "Revenue" need to be replaced with the Shopsite variables. I can't seem to get the syntax correct.

Here is my original code

<IFRAME SRC="https://fls.doubleclick.net/activityi;src=1277306;type=stir09sa;cat=shopthan;qty=1;cost=[Revenue];ord=[OrderID]?" WIDTH=1 HEIGHT=1 FRAMEBORDER=0></IFRAME>

Any help would be much appreciated!
Randy
loren_d_c
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere
Contact:

Post by loren_d_c »

Randy,

Have you looked at the documentation for the Shopping Cart JavaScript Variables yet?

http://www.shopsite.com/help/9.0/en-US/ ... ables.html

Note that these are the variables available in ShopSite Pro. The variables available in ShopSite Manager (in v8.1 or newer) are much more limited, but should still contain the values you need for this simple tracking code, see:

http://www.shopsite.com/help/9.0/en-US/ ... ables.html

These variables are not available in ShopSite Starter.

Since these values are in JavaScript variables, you would need to use JavaScript to created the modified HTML tracking code with the variables inserted in it.

-Loren
Randy
Posts: 3
Joined: Sat Feb 10, 2007 3:13 pm
Location: usa

Post by Randy »

Would you have an example of how that code woyuld be setup?
Randy
Jim
Site Admin
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Post by Jim »

If you follow the links on the pages Loren mentioned you will come to this page:


http://www.shopsite.com/help/9.0/en-US/ ... ytics.html

which has an example of using the ShopSite javascript variables at the bottom. Note this is a complex example but it does show how the variables are accessed in javascript.
Post Reply