Kdicuori
01-07-2009, 10:22 AM
Hello,
I have been asked to add a custom google tag only to be displayed on the user's activation confirmation page (the http://www.myvbulletinforum.xx/register.php?register.php?a=act&u= etc etc etc page). The goal is to track users who actually complete their activation (don't ask me why they want to do it that way, marketing has its own evil and mysterious ways).
I have positively tried everything I could think of to get it done.
I can track the used template to the STANDARD_ERROR template. I tried adding this to the template:
<if condition="$bAddGoogleAdsTracker">
<!-- Google Code for Conversion Page -->
blah blah blah
<!-- / Google Code for Conversion Page -->
</if>
and this hook
global $bAddGoogleAdsTracker;
$bAddGoogleAdsTracker = TRUE;
to any hook I found it might be relevant by examining register.php, namely these:
register_activate_start
register_activate_process
register_addmember_complete
with no success at all.
I tried to add the variable as global, no global, to try and read the URI directly in the template and put that into a condition, nothing worked. I still can't make it come out.
I even tried moving the code into the "forum jump" condition, but it seems that this forum jump code gets added even on the /register.php?do=addmember pages - even though it has no content. So I would get the tag included in the wrong step.
Unfortunately I have found no way of debugging this except doing a different registration every time and after 15 gruelling test user registrations, I am at my wit's end and clueless :(
Any help would be very appreciated.
Thanks,
M.
I have been asked to add a custom google tag only to be displayed on the user's activation confirmation page (the http://www.myvbulletinforum.xx/register.php?register.php?a=act&u= etc etc etc page). The goal is to track users who actually complete their activation (don't ask me why they want to do it that way, marketing has its own evil and mysterious ways).
I have positively tried everything I could think of to get it done.
I can track the used template to the STANDARD_ERROR template. I tried adding this to the template:
<if condition="$bAddGoogleAdsTracker">
<!-- Google Code for Conversion Page -->
blah blah blah
<!-- / Google Code for Conversion Page -->
</if>
and this hook
global $bAddGoogleAdsTracker;
$bAddGoogleAdsTracker = TRUE;
to any hook I found it might be relevant by examining register.php, namely these:
register_activate_start
register_activate_process
register_addmember_complete
with no success at all.
I tried to add the variable as global, no global, to try and read the URI directly in the template and put that into a condition, nothing worked. I still can't make it come out.
I even tried moving the code into the "forum jump" condition, but it seems that this forum jump code gets added even on the /register.php?do=addmember pages - even though it has no content. So I would get the tag included in the wrong step.
Unfortunately I have found no way of debugging this except doing a different registration every time and after 15 gruelling test user registrations, I am at my wit's end and clueless :(
Any help would be very appreciated.
Thanks,
M.