SOLVED

Forms 2.0: Relative paths for follow-up URLs recently removed?

Go to solution
Highlighted
Anonymous
Not applicable

Forms 2.0: Relative paths for follow-up URLs recently removed?

Hi all,

This is a function that we use extensively across our pages and it seems to have been removed recently. Some context to our requirement:

Problem

In the landing page editor, if a form follow-up page is set using Follow-up type > Landing Page > ThankYou Page, or Follow-up Type > External URL > Absolute Path URL when the form is used Google Analytics will reset the submitter's session, removing any referral or source/medium information. The session reset may not affect all users, it's a side-effect of the type of cross-domain tracking we've had to use to maintain sessions between Marketo landing pages and our main websites.

Solution

By setting a thank you page with a relative path (Follow-up type > External URL > Relative Path URL) we are able to prevent Google Analytics from restarting a submitter's session. This was possible until not long ago so we are hoping relative paths can be allowed again. Our active pages are all using relative URLs right now, it's only when we try to change them do we receive an error.

Any other ideas on the above problem would also be much appreciated.

Kind Regards,

Maynard

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Do you see this same behavior when using a my.token to store the URL?

View solution in original post

11 REPLIES 11
Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Do you see this same behavior when using a my.token to store the URL?

View solution in original post

Highlighted
Anonymous
Not applicable

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

That's an interesting idea Sanford I'll give it a shot.

Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Let me know.  In any case, there's an easy JS workaround using the Forms 2.0 API.

Highlighted
Anonymous
Not applicable

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

I tried a dummy token with the default value set to a relative link, all seems to be working fine.

Thank you for the clever solution!

Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Glad it worked! Definitely an unintended regression, I'd think. Maybe broken while fixing the ability to use tokens (which is why I pointed to that to try).

Highlighted
Anonymous
Not applicable

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Just an update on this issue.

The 'dummy token trick' works well for our landing pages hosted on Marketo, but unfortunately it doesn't work for embedded forms as tokens cannot be used. Because of this the embedded forms on our sites are still resetting Google Analytics sessions, so a user that fill out a form is recorded as just a single view of the thank you page.

Really hoping Marketo will allow relative paths in future.

Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

MktoForms2.whenReady(function(form){

  form.onSuccess(function(vals,tyURL){

    var loc = document.createElement('A');

    loc.href = tyURL;

    document.location.href = loc.pathname + loc.search + loc.hash;

    return false;

  });

});

Highlighted

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

Hello Sanford

You seem to really knowledgeable about URL capture and landing pages in general so this might be a very simple question. I am basically trying to create form that is being embedded on a web page called get-started but the form should automatically redirect to a relative 'thank you' page that one level down in the hierarchy 'get-started/thank-you' . How do I setup a redirect to a relative page on the website that this form is located on?

Highlighted
Level 10 - Community Moderator

Re: Forms 2.0: Relative paths for follow-up URLs recently removed?

the form should automatically redirect to a relative 'thank you' page that one level down in the hierarchy 'get-started/thank-you' .

Answering on your new thread.