Doubleclick Spotlight tracking code

General ShopSite user discussion

Doubleclick Spotlight tracking code

Postby Randy » Sat Jul 26, 2008 10:19 am

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
Randy
 
Posts: 3
Joined: Sat Feb 10, 2007 3:13 pm
Location: usa

Postby loren_d_c » Mon Jul 28, 2008 11:49 am

Randy,

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

http://www.shopsite.com/help/9.0/en-US/sc/pro/cart.variables.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/sc/mgr/cart.variables.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
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Postby Randy » Tue Jul 29, 2008 4:12 am

Would you have an example of how that code woyuld be setup?
Randy
Randy
 
Posts: 3
Joined: Sat Feb 10, 2007 3:13 pm
Location: usa

Postby Jim » Tue Jul 29, 2008 6:35 am

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.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 127 guests