Jump to content

Question about pixel tracking (commerce connector)


xonsuns
 Share

Recommended Posts

Ok, so i have to print in order_confirmation.tpl in each one of the payment modules a tracking pixel

<img src="https://www.commerce-connector.com/tracking/tracking.gif?
shop={shopIdent}&ean[0]={EAN_0}&sale[0]={SALE_0}&...&ean[n]={EAN_n}
&sale[n]={sale_n}" width="1" height="1" border="0"/>

All smooth, i edit OrderConfirmationController and assign a smarty variable with the result, and then i print the result in the tpl, no problem at all. But my question is:

the commerce connector use a variable in the ULR (for example https://www.example.com/3378-hygiene-kit.html?partner_id=3m ) to check the referal is the "commerce connector" company.

To print the pixel tracking i have to know if the customer came to my product from that company (with the variable partner_id). How can i build the IF condition in the order confirmation tpl? The variable in the URL is lost once the customer make any action.  i have to create a global variable, a cookie..?

Im kind of lost

 

Thank you

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More