Can a Form thank you page have a unique url?


(Charlotte Westney) #1

Hi everyone,

 

Has anyone come across a clever way to give a form thankyou bodycopy its own url, so that the two urls can be set up in Google Analytics as a goal?

 

I was thinking of a redirect asset nested into the thankyou body, that takes you to a separate page, but I'm guessing you can't then use keywords like %response_q123% to output the users responses?

 

Any clever ideas welcome, thanks!

Charlie.


(Bart Banda) #2

You can, but if this is purely for google analytics tracking, you are probably better off just adding some overwriting JS code to teh thank you page bodycopy to make the page view count as a different URL.

ga('send', 'pageview', {
  'page': '/my-custom-form-thank-you',
  'title': 'My Custom Form - Thank You'
});

See more at https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#overriding 

 

Would that work?