News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Custom registration complete url/page for google analytics tracking

Started by StarBuG, August 04, 2006, 03:22:10 PM

Previous topic - Next topic

StarBuG

Hi

I realy would like to see that after completing registration (with or without activation) the user comes to a separat landing page with a unique url so that I can track conversions with google analytics.

The unique url is the important part in this!

Currently users are directed to the index after completion of the registration which does not work for conversion tracking.

The custom page could also be used to give some directions like:

Quote
Welcome UserXY, we are glad that you decided to take part in XY Community.

If you don´t know what to do you can check our <help> for information about how our forum works.
Or say hello to our members by posting in our <Introduce yourself> forum.
You can also take part in one of our many ongoing conversations in our <XY forum>.
If you are looking for something specific, try our <search> function.

Your XY Community Team
Something like that.

But the unique url is the important part so that a conversion of new members can be tracked!

I realy would like to have this.

Is this possible with rc2?

Thank you in advance

StarBuG
Elternfragen.net - Das Forum für Eltern (SMF)
Fragen und Antworten rund um das Thema Kinder, Entwicklung, Ernährung und Gesundheit unserer Kleinen.
-------------
Patientenfragen.net - Das Forum von Patienten für Patienten
Fragen und Antworten rund um das Thema Krankheit und Gesundheit.
-------------
Hiphop-Battles.com - Version 2
The new standard in online hip hop battles

winrules

Really all you have to do is make a custom page, and then redirect to it. To make the custom page, you could try my Custom Action Mod. The redirect is a little harder, since it goes through the login file after registration. But we can use $_SESSION['login_url']. Try this:

In Register.php find:

redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);

And Replace with:

$_SESSION['login_url'] = $script_url . '?action=whatever_custom_action_name_you_used';
redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);

This will only work if you have immediate registration enabled. Also it isn't tested but whould work.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


StarBuG

Hi

I am no php programer, I can read and understand code and modify it when neccessary but creating custom actions hmmmm I currently have no clue how I would go for that !?

I have no email activation so it should work.

Could you give me more details?
I just need a basic text info page with some blabla and a unique url.
Elternfragen.net - Das Forum für Eltern (SMF)
Fragen und Antworten rund um das Thema Kinder, Entwicklung, Ernährung und Gesundheit unserer Kleinen.
-------------
Patientenfragen.net - Das Forum von Patienten für Patienten
Fragen und Antworten rund um das Thema Krankheit und Gesundheit.
-------------
Hiphop-Battles.com - Version 2
The new standard in online hip hop battles

winrules

1. Install this mod.
2. Create a BBC custom action with the name "welcome" and a page title of "Thank you for registering" (or whatever you want).
3. Put

Welcome UserXY, we are glad that you decided to take part in XY Community.

If you don´t know what to do you can check our <help> for information about how our forum works.
Or say hello to our members by posting in our <Introduce yourself> forum.
You can also take part in one of our many ongoing conversations in our <XY forum>.
If you are looking for something specific, try our <search> function.

Your XY Community Team

or whatever you want in the body for the custom action.
4. In Register.php find:

redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);

And Replace with:

$_SESSION['login_url'] = $script_url . '?action=welcome';
redirectexit('action=login2;sa=check;member=' . $memberID, $context['server']['needs_login_fix']);


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


StarBuG

Ok

I will give it a try tomorrow and let you know if it works out.

Thanks for your help

StarBuG
Elternfragen.net - Das Forum für Eltern (SMF)
Fragen und Antworten rund um das Thema Kinder, Entwicklung, Ernährung und Gesundheit unserer Kleinen.
-------------
Patientenfragen.net - Das Forum von Patienten für Patienten
Fragen und Antworten rund um das Thema Krankheit und Gesundheit.
-------------
Hiphop-Battles.com - Version 2
The new standard in online hip hop battles

StarBuG

Thank you

It worked perfect, except the

$_SESSION['login_url'] = $script_url . '?action=welcome';


needs to be without ? before action

Thank you for your help

StarBuG

Elternfragen.net - Das Forum für Eltern (SMF)
Fragen und Antworten rund um das Thema Kinder, Entwicklung, Ernährung und Gesundheit unserer Kleinen.
-------------
Patientenfragen.net - Das Forum von Patienten für Patienten
Fragen und Antworten rund um das Thema Krankheit und Gesundheit.
-------------
Hiphop-Battles.com - Version 2
The new standard in online hip hop battles

Advertisement: