Does someone know where to put JS codes to track signups? Google and Facebook both have conversion tracking codes but I am not sure how to handle them.
Thanks.
Does someone know where to put JS codes to track signups? Google and Facebook both have conversion tracking codes but I am not sure how to handle them. Thanks. |
/templates/base/_footer.html before the </body> ManOfTeal.COM a Proud UNA site, six years running strong! |
But then how would you track the page where the conversion occurs? If I just put it to footer then it will track all pages |
But then how would you track the page where the conversion occurs? If I just put it to footer then it will track all pages correct, your speaking of Google Analytics? ManOfTeal.COM a Proud UNA site, six years running strong! |
No, I am talking about conversion tracking code. Its not google analytics. |
OK, just saying because I track my conversions via that by setting my own goals. It would help if you posted an example of the code or the sites instructions. Most JS is inserted into the footer. In your other post, no one responded to that I would think because we need a bit more info. ManOfTeal.COM a Proud UNA site, six years running strong! |
Actually I just went to Adwords, I would think the code will go in the page as you thought, the thing is what pages. If your wanting data, e.g. from the join page, have you inserted the code there in "join.php?" ManOfTeal.COM a Proud UNA site, six years running strong! |
Analytics can track goals by the url matching mechanism, which is really easy to define. Any goal you defined there can then be imported to Google Adwords. However, this method is slow and not very efficient. In both Google Adwords and Facebook, you can create a goal to track leads. If I want to track number of signups, I can create a goal in Google Adwords and then set my bids to CPC enhanced to automatically bid for the keywords that convert well for me. Unfortunately, this method requires you to put JS code where the lead occurs. So no url matching mechanism applies. My lead occurs when the user registers on the main page and redirected to /m/avatar/&join_text=_EMAIL_CONF_SENT As you can see I need to put the JS code of this page. When I put a code there, I will then create a different goal to track how many of my users purchase credits on my site. This happens on a different page. Instead of putting JS codes inside different modules, I would like to be able to put somewhere like footer.html as you said. (Would be better if I can echo it from a PHP file). I need to check the url of the current page to make sure the tracking code is on the right page.
|
You would use dolphins injections. https://www.deanbassett.com |
I learned something new today.. tried to help as best I could. Thanks Deano! ManOfTeal.COM a Proud UNA site, six years running strong! |
The code works as promised. Thanks Deano. For people, who might use this in the future, make sure the PHP param is $_SERVER not $SERVER. |
The code works as promised. Thanks Deano. For people, who might use this in the future, make sure the PHP param is $_SERVER not $SERVER.
https://www.deanbassett.com |