Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

virtuemart2 adwords conversion

virtuemart2 adwords conversion

Is there a way to use Metamod to put the Google Adwords (or for that matter Yahoo and Facebool) conversion tracking javascript on the Virtuemart order thank you page?

Perhaps it would be different for various payment methods, I am not sure?

Thanks,
Elias

enspyre
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: virtuemart2 adwords conversion

Yes, you could do that to simply trigger a conversion though I am not sure how you would trigger JS with an order total or something like that.

But for a basic indicator in Joomla 2.5:

// Place the complete adwords JS code here. Ensure you escape any single quotes.
// You can use newlines.
$js = '<script type="text/javascript">......adwords script goes in here......</script>';
$vm = JomGenius("virtuemart");
if ($vm->check("pagetype = cart.thankyou")) {
  $document = JFactory::getDocument();
  $document->addCustomTag($js);
}


Hope that helps,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10783
Newest User:
weatti4qx
Members Online:
0
Guests Online:
147

Online: 
There are no members online

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked