Custom Pageview URL for Google Analytics

So this “could” be a Javascript question as it is the implementation of Google Analytics.

I have multiple Landing Pages that use one Thank You page. I pass
the URL of each landing page to the Thank You page and append /goal to
it.

Example:
LP URL: go.site.com/landing-page-one
Thank you URL: go.site.com/thank-you
But for the Thank You Page I pass the LP URL into the Analytics so the Thank You page analytics has a custom pageview to send: go.site.com/landing-page-ond/goal

hitType example from here https://developers.google.com/analytics/devguides/collection/analyticsjs/pages) and end up with this:

<script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-XXXXXX-7', 'auto');
    ga('require', 'displayfeatures');
    ga('send', {
        'hitType': 'pageview',
        'page': 'landing-page-one/goal/',
        'title': 'Title Of Landing Page One'
    });
</script>

However when I check my Analytics, I see the hits on the Landing page
/landing-page-one/ but no hits on the /thank-you page (which should not
appear anyway), nor any hits for /landing-page-one/goal/

What am I doing wrong? I was hoping to keep the goal conversion URLS easy to read and in pairs with the Landing Page URL.

Any help/pointers will be great.

Thanks!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.