Forums / General Questions / Trying to add Microsoft AdCenter tracking to my checkout page

Trying to add Microsoft AdCenter tracking to my checkout page

Views: 1,013

Results 1 to 3 of 3
3 May 2012, 3:12 PM
#1
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Trying to add Microsoft AdCenter tracking to my checkout page

I have to put some code in my "Thank You" page but i cannot locate the page.
I am looking for the "checkout_success" page.
Could someone tell me where the location of this page is please?

This is the code:

<script type="text/javascript"> if (!window.mstag) mstag = {loadTag : function(){},time : (new Date()).getTime()};</script> <script id="mstag_tops" type="text/javascript" src="//flex.atdmt.com/mstag/site/66d05c5c-328d-4b48-b797-0a9859b74656/mstag.js"></script> <script type="text/javascript"> mstag.loadTag("analytics", {dedup:"1",domainId:"1631202",type:"1",revenue:"",actionid:"55073"})</script> <noscript> <iframe src="//flex.atdmt.com/mstag/tag/66d05c5c-328d-4b48-b797-0a9859b74656/analytics.html?dedup=1&domainId=1631202&type=1&revenue=&actionid=55073" frameborder="0" scrolling="no" width="1" height="1" style="visibility:hidden;display:none"> </iframe> </noscript>

There is a variable that needs inserting as explained here:

*To dynamically grab the order total (net value), the function or variable from Zen/PHP needs to be inserted between the commas of revenue.
The revenue:"" is a place holder. The commas need to have a function/variable inserted between them.
*

Does any one know what the variable / function is that i need to insert?
Thanks in advance.

3 May 2012, 3:55 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Trying to add Microsoft AdCenter tracking to my checkout page

You can edit define_checkout_success.php in admin > Tools > Define Pages Editor.

You would echo the order total variable (not sure offhand exactly what its name is) like this:

{dedup:"1",domainId:"1631202",type:"1",revenue:"<?php echo $whatever_variable_name ;?>",actionid:"55073"})
3 May 2012, 3:59 PM
#3
bridge32 avatar

bridge32

Zen Follower

Join Date:
Jun 2011
Posts:
145
Plugin Contributions:
0

Re: Trying to add Microsoft AdCenter tracking to my checkout page

I see, i have added the script in the define pages, however, i now need the variable, whatever it is :smile: