View Full Version : Sales Tracking
Confuscius
17-07-07, 22:47
I have made a little tweak to goto.php to append the product name to the end of the Clickref. Code as follows:
...
$sProductAwUrl = $aProduct[$oShop->getProductId()]->sAwDeepLink;
// NEW CODE
$sProductClickRefName = $aProduct[$oShop->getProductId()]->sName;
$sClickRef .= ' '.$sProductClickRefName;
// NEW CODE
# use products deep link
...
Could someone from DigiWin confirm what the limits are for the ClickRef field? Length? Will over long product names get truncated? How will it work? Will it work?
Also, how do the Click Source and Keywords columns operate in the AW affiliate centre? I have one sale that shows a little Google Logo and a keyword but the rest are all 'n/a'. Just curious for some more explanation from anyone, pretty please!
Paul
Thanks for the post... I didn't even know there was such a thing as a ClickRef field as I'm using the API interface and hadn't really investigated the ShopWindow software.
I've just added the following snippet of code now to append a copy of the referring page to the end of the outgoing URL (after replacing any non alpha-numeric characters with dashes)...
$url .= '&clickref='.trim(preg_replace('/[^a-z0-9]+/', '-', $requesturi), '-');
Cool... It works... Just had my first sale with a click reference. :-)
IntroSites
10-08-07, 13:11
Also, how do the Click Source and Keywords columns operate in the AW affiliate centre? I have one sale that shows a little Google Logo and a keyword but the rest are all 'n/a'. Just curious for some more explanation from anyone, pretty please!
id be interested in an answer to this too
Hi Guys,
Just to clarify, you will only see a value in these two columns when the sale has come through a Search Engine PPC link. The 'Click Source' column will show the search engine name (as an image) and the 'keyword' column will show the keyword used (as text).
Regards,
Adrian ;)
SW Integration & Technical Support
adrian.botelho@digitalwindow.com
www.digitalwindow.com
Just to clarify, you will only see a value in these two columns when the sale has come through a Search Engine PPC link.
Strange... I have a few of these, but I don't use any PPC at all!
In goto.php the code for clickref is
$sClickRef = "clickref=swinDOTcom"; # awin clickref
Could I use
$url .= '&clickref='.trim(preg_replace('/[^a-z0-9]+/', '-', $requesturi), '-');
Instead of swinDOTcom
$sClickRef = "clickref='.trim(preg_replace('/[^a-z0-9]+/', '-', $requesturi), '-')"; # awin clickref
I want to track the keywords used from adwords to my site and then through to the merchant site. The ppc tracking only works if you send traffic straight to the merchant page, which defeats the point of building our own sites.
Or can someone tell me how to set this up to track the keywords through to the sale?
Thanks
Ken
Thanks to the previous posts clickref is working fine - Cheers.
However, I don't think it tracks anything from the featured merchants tpl. I believe this is because it doesn't go through the goto.php but is a 'direct' link.
Currently my code is:
<a href="{$oFeaturedMerchant->sLink}" target="_blank" >View site</a>
Could anyone suggest how I can add the clickref to the featured merchants list?
I'm only trying to add what site the click comes from as there are obviously no items to track.
Thanks in advance.
Bud
IntroSites
13-10-07, 01:46
in featured merchants tpl add your ref after the link
{$oFeaturedMerchant->sLink}
will be
{$oFeaturedMerchant->sLink}&clickref=anothersaleforbud
Thanks Intro
As usual - A great help
I was thinking just the same but wasn't sure that it would work. I know it will now.
Cheers
Bud