Conversion Tracking
Posted: Fri Jun 13, 2008 8:08 pm
I want to use Google Adword conversion tracking and I'm a little over my head. Normally, you would put the tracking code on a 'Thank You' page, but my CMSMS forms don't forward to a separate thank you page. Instead, they pull up 'Thank You' text from a user-defined tag called "Success." First I tried adding the Google conversion tracking code to the end of the Success tag surrounded by the {literal}{/literal} tag, but it errors out. Second I tried putting the tracking code in a global content block, and then calling up the GBC in the success tag and that didn't work either. Here are my two failed attempts, could someone show me how to make one of them work (preferably #1)? Thanks!
ATTEMPT #1 (my 'Success' tag with tracking code added)
if (isset($_POST['submit'])) {
echo "
Thank You. Your request has been sent and you will hear from us shortly.";
}
{literal}
{/literal}
ATTEMPT #2 ('Success' tag calling up a GBC with the tracking code)
if (isset($_POST['submit'])) {
echo "
Thank You. Your request has been sent and you will hear from us shortly.";
}
{global_content name='conversiontracking'}
ATTEMPT #1 (my 'Success' tag with tracking code added)
if (isset($_POST['submit'])) {
echo "
Thank You. Your request has been sent and you will hear from us shortly.";
}
{literal}
{/literal}
ATTEMPT #2 ('Success' tag calling up a GBC with the tracking code)
if (isset($_POST['submit'])) {
echo "
Thank You. Your request has been sent and you will hear from us shortly.";
}
{global_content name='conversiontracking'}