Google Analytics Goals

Google Analytics Goals, a forum discussion on Jojo CMS. Join us for more discussions on Google Analytics Goals on our General Discussion forum.

Back to Forum Index : Back to General Discussion   RSS
justsearch

12 Oct 2007
Posts: 12

Hi All;

Been playing around with Jojo for a little while now, thanks to the team, however I would like to set up a goal in analytics for the contact form, I'm a little low on PHP skills, does any one no how I could get the contact form plugin "jojo_contact.php" to redirect to a different page with the thankyou message as oppose to the thank you message appearing on the same page as the form currently does?

Any one else tired to do this?
Neil Walker
Harvey

Core Developer

Harvey

12 Oct 2007
Posts: 327

Hi Neil,

Please insert the following code into line 146 of jojo_contact.php - this will get you up and running. I'll schedule this as a feature for the next alpha release so you can have this functionality without having to hack the code.

header('location: '._SITEURL.'/your-thank-you-page/');
exit();


You will need to create a page in the Edit Pages section as normal, but make sure you set the checkboxes in the "Navigation" tab so that the page doesn't appear in any menus or sitemaps, and the noindex option is set to prevent the page from appearing in search engines.
justsearch

19 Oct 2007
Posts: 12

Thanks for this Harvey, although I'd maybe hold development, I believe Google analytics is having a change where it will be able to pick up this information within the same page see http://www.justsearching.co.uk/JustBlog/google-analytics-updates-and-improvements.html just thought if it happens it would save you the dev time.
Neil Walker
Back to Forum Index : Back to General Discussion   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.