Tracking submits with Google Analytics
-
Hi there,
Super easy plugin! Is there a way to add Google Analytics event tracking to the form submit button or redirect to a thank you page after submit so we can track conversions?
Cheers!
-Ronnie
-
Hey Ronnie, glad you like it!
It is possible to redirect to a custom page by adding the “redirect” parameter to the shortcode. For example:
[zendesk_request_form redirect="http://www.yourdomain.com/message-received"]You can also display the newly created ticket number on your custom page by including the shortcode
[zrf_ticket_num]. This will display the ticket number in plain text. So, on the page ‘http://www.yourdomain.com/message-received’ you could add some information such as:Thank you for your message. Your ticket number is
[zrf_ticket_num]I’ll also add Google Analytics event tracking options to the roadmap, as I think that will be a great addition to the plugin. Thanks for the feedback!
Phil
Hi there!
I added the parameter within the popup builder we’re using and it doesn’t seem to work. I am not sure if that is because of your plugin or the popup builder plugin we’re using. I will report back if the issue is fixed for future reference :). I’m sure others care about tracking their results haha.
-Ronnie
Hi Ronnie,
Yeah I definitely think Google Analytics is a great idea. We use this exact plugin on our own support system (which is why it was created initially). So we’ll be sure to add this to our support site and run some tests to make sure it works well. Once it’s working, we’ll push this to the plugin too.
With regards to the popup builder, it’s quite difficult to suggest what the issue may be. Which plugin is it that you are using for this?
Thanks,
Phil
Hi there!
I certainly don’t expect support for this issue now that its likely a joint plugin issue :). But if you’re curious, here’s my support ticket with the other plugin:
https://ww.wp.xz.cn/support/topic/redirect-after-form-submit?replies=0#post-8613817
We inserted the parameter into the short code but it didn’t respond on the live site. Its probably due to the Popup Builder rather than your plugin which is why I reached out to them as well :).
If you have any ideas or comments I’d love the additional thoughts, but don’t spend too much time on this, I’d feel bad! xD.
Thanks!
-RonnieHi Ronnie,
From what I can tell, it looks like a redirect won’t be possible whilst using that particular plugin. Would you be able to send me a link to a page which shows how this has been integrated? I might be able to suggest a workaround.
However, the good news is that we have now added Google Analytics Event Tracking to the form after your suggestion. It’s not live in the plugin yet, but we will be adding this within the coming days after testing on our own site π
Phil
Sure! Training.thrivehive.com – their support basically said “sorry, not sorry” haha. So I’m excited for the updated plugin! Thank you <3
Ah I can see what’s happening – when the user is redirected back to the page, the shortcode is displaying the ticket info but it is only visible in the popup (because that’s where the shortcode is located) http://imgur.com/Ob9MBzN
I think you can probably fix this by adding
redirect="http://training.thrivehive.com/success"to the shortcode (or any other page you want to create for the user to land on after submitting the form). Did you say that this parameter didn’t seem to work when you added it to the shortcode?Would you mind sending me the Zendesk shortcode you’ve used in the popup builder?
That said, the good news is that this means that Google Analytics will work for you after we update the plugin. I guess the only concern is that users may not know if the ticket has submitted if they are redirected to the homepage without a success message.
They are going to be redirected to a Thank You page to confirm a successful submit :).
[zendesk_request_form redirect=”http://training.thrivehive.com/thank-you/”%5D Is what we put into the popup builder. Can you recommend a different builder that can do what we’re currently doing but let us redirect to a page for tracking?
Thanks again for all the help!
Looking at the markup behind the form, the redirect doesn’t appear to be set in the shortcode. Is the plugin updated to the latest version?
I’m pretty sure the redirect option will work for this, so it’s just a matter of figuring out why this parameter isn’t working on the site.
Please see: https://drive.google.com/a/thrivehive.com/file/d/0B4mDa_XmeIFsSDRuZGxtak1adk0/view?usp=sharing
the shortcode is within the popup settings.
Even when I run the zendesk short code on a whole new page, the redirect doesn’t appear to work
Please see http://training.thrivehive.com/test-delete/
Where I used [zendesk_request_form subject_prefix=”Request a coach”redirect=”http://training.thrivehive.com/thank-you/”%5D
The system entirely ignores the redirect
Thanks again for the help!
ITS WORKING! It broke all of our CSS… but its working now haha. Since updating today and trying again the redirect seems to work. We might have messed up syntax too with an extra space but I’m unsure. Either way, the popup now works and redirects properly. Thank you π
Hi Ronnie, glad to hear it’s working now!
I’m guessing that the missing space in the shortcode may stopped the redirect parameter from working. I was about to mention it, but then saw your later reply about it working now anyway.
Either way, I’m glad its working for you π
The topic ‘Tracking submits with Google Analytics’ is closed to new replies.