Zen Cart Logo
Forums / General Questions / Where to put my Affiliate Tracking Code??

Where to put my Affiliate Tracking Code??

Locked

Views: 8,377

Results 21 to 28 of 28
This thread is locked. New replies are disabled.
15 Nov 2008, 11:39 PM
#21
danwebman avatar

danwebman

New Zenner

Join Date:
Nov 2008
Posts:
71
Plugin Contributions:
0

Where to put my Affiliate Tracking Code??

That ended up comming up blank and $0 too. Here is an example of a seperate cart with a totally different account/aspect for the business that the companies old developer inserted into their cart. It worked for them. It looks like it was inserted into their checkout success page in a .cfm page. I'm not sure what cart they were using but here it is:

<!-- PayneMason Tag Begins Here -->
    <script language='Javascript'>
        document.write( '<scr'+'ipt language="Javascript" src="https://hits.affiliatetraction.com/cgi-bin/convert?js=1&offer=4656&amount=#currentCart.orderTotal#&uid=#currentCart.orderNumber#"><\/scr'+'ipt>' );
    </script>
    <noscript><img src='https://hits.affiliatetraction.com/cgi-bin/convert?offer=4656&amount=#currentCart.orderTotal#&uid=#currentCart.orderNumber#' border=0 width=1 height=1></noscript>
    <!-- PayneMason Tag Ends Here -->

Does this help any??

16 Nov 2008, 4:22 AM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Where to put my Affiliate Tracking Code??

danwebman:

ZenCart: v1.3.7
When was this site installed?
Has this site ever been upgraded from prior versions? Which versions?
What addons have you installed?
What customizations have you made?
Which files do you have overrides for?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Nov 2008, 5:09 AM
#23
danwebman avatar

danwebman

New Zenner

Join Date:
Nov 2008
Posts:
71
Plugin Contributions:
0

Re: Where to put my Affiliate Tracking Code??

When was this site installed? ==1 month ago (1.3.7 Because the FedEx Module was not working properly with 1.3.8)
Has this site ever been upgraded from prior versions? ==Nope
What addons have you installed? ==FedEx Shipping Module, Order Export Module so I can export them to Excel Spreadsheets
What customizations have you made? ==Just a few colors in the template stylesheet - Background Black, text white, etc...
Which files do you have overrides for? ==Just the tpl_footer in the checkput_success folder

There have been a couple posts earlier from people with the exact same problem of not geting a correct tag that communicated with their affiliate tracking, but no one ever said if or how they came up with a solution. I messaged them with no response :(

http://www.zen-cart.com/forum/showthread.php?t=85871
http://www.zen-cart.com/forum/showthread.php?t=107506
http://www.zen-cart.com/forum/showthread.php?t=73075

I am dying over this!

16 Nov 2008, 5:19 AM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Where to put my Affiliate Tracking Code??

danwebman:

I am dying over this!
nice.

As I said earlier, there were numerous important fixes in 1.3.8 to allow order information to be easily accessible on the checkout-success page. Lots of good reasons to use current code, including the ability for support folks to help you. There are lots of reports of people successfully using the fedex module on 1.3.8. Maybe you have a bad version of it.

I've dug up the old v1.3.7 code from the archives once again, and it looks like you'll have to do similarly to what the others used in the threads you linked to.

For the order number, use <?php echo $orders_id; ?>
For the final order price, use <?php echo $orders->fields['order_total']; ?>

That "order_total" value will include taxes and shipping. With v1.3.8, you can get the amount before taxes and shipping very easily using the instructions I gave earlier.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Mar 2009, 4:44 PM
#25
casmusic avatar

casmusic

New Zenner

Join Date:
Jun 2008
Posts:
3
Plugin Contributions:
0

Re: Where to put my Affiliate Tracking Code??

I'm having a VERY STRANGE problem here... (running 1.3.8)

I placed the following two tags on my checkout success page:

<?php echo $order_summary['commissionable_order'];?> <?php echo $order_summary['order_number'];?>

When I view the success page normally in the browser, it CORRECTLY displays the Order Number value and Sub-Total value as text on the page. Good.

However, when I VIEW THE SOURCE from the browser, these text values are invisible! WTF!?

I need to add these two values as part of an HTML image tag, which is a tracking pixel for Commission Junction.

Why can I see these values in the page, but not in the page source?? How do I fix this??

Serve The Song - a blog about song craft, music production, and online music promotion.

CasJam Studio - Web Design & Development

11 Mar 2009, 8:13 PM
#26
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Where to put my Affiliate Tracking Code??

No idea.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

17 May 2011, 4:06 PM
#27
tonerrefillstore avatar

tonerrefillstore

New Zenner

Join Date:
May 2011
Posts:
2
Plugin Contributions:
0

Re: Where to put my Affiliate Tracking Code??

I am running into the very same problem and am curious if one has any insight on what may be going on.

We are currently using Zen Cart version 1.3.8a and are using the silverfish template. We are starting to look into some affiliate marketing and they provided their tracking code which was submitted by Zen Cart support. I created a directory called "checkout_success" in the /includes/templates/silverfish directory and then created a file called "tpl_footer.php" and inserted the tracking code which is written in PHP. I then run a test transaction and upon viewing the source code it does not include the tracking code. To ensure that I was in the correct directory I added the text "TESTING" and it appears on the checkout success page as well as in the source code but the tracking code will just not appear. I have looked through other posts but have not seen a solution to this.

Any help would be greatly appreciated. Our website link is below. Thanks in advance.

http://www.tonerrefillstore.com

24 Aug 2011, 4:56 PM
#28
tonerrefillstore avatar

tonerrefillstore

New Zenner

Join Date:
May 2011
Posts:
2
Plugin Contributions:
0

Re: Where to put my Affiliate Tracking Code??

Would anyone have any thoughts on this one. I am still having this issue and its preventing us from starting our affiliate marketing.

Again I had created the "checkout_success" directory and added the "tpl_footer.php" file including our affiliate tracking code but it will not show up in the source code nor does it send the sale information to our affiliates. If I just enter the word "TEST" in that same file it will show up at the bottom of the checkout_success page. I have also noticed that our footer(which contains links to the home page and our about us page, along with the copyright 2011 information) does not show up on our checkout_success page but does on all of our other pages.

Any help would be greatly appreciated.

Thanks