0405123696 petra@web-data-analytics.com

 2,311 total views,  1 views today

ECommerce analytics requires accuracy in order to make good use of the mountainload of data you have coming to you every day. You need to understand precisely what is happening on your site. And this really requires you to be on the ball, as just an errant character in your page URLs can really put a spanner in the works.

For example, some eCommerce platforms have an infuriating software defect where some page names have a forward slash (/) at the end, and others do not. This can even occur on the same page of the website! This will result in inaccurate data, as Google Analytics will treat these as two different pages. You will literally see the same page listed twice, one with the slash at the end and one without. Your page view data will be split between them. Magento is one of the platforms that comes to mind where I have regularly seen this occur, but it’s not the only one.

So we’re going to create a filter which will alleviate the problem.

remove trailing slash in google analytics filter

For this filter, choose a Custom Filter Type and select Advanced.

In Field A> Extract A choose Request URI and type in ^/(.*)/$

In Output To → Constructor type in /$A1

You need a tick in Field A Required and Override Output Field.

What this is going to give us is a URL that doesn’t have any slashes at the end of it. If there’s a slash, it’ll take it away. If there’s no slash then it will keep it that way. Thank Goodness!!

This is a pretty straightforward way of alleviating any problems with trailing slashes. Do include this filter in your filtered views; it is essential to get this ironed out on your site if you want to avoid annoying problems that will result in misleading data.


Nadia Rossi

It has been an absolute pleasure working with Petra over the last year and a half. 1834 Hotels centralises marketing for over 20 hotels around Australia, all with different branding and websites. On an analytics level Petra’s skills have allowed us to monitor and track our marketing efforts in the digital space. Bringing Petra onboard to manage our Google Ads was one of the best marketing decisions we have made. Her thoroughness and attention to detail is incredible, her insights have helped develop better marketing strategies and demonstrate to shareholders return on investment. I would highly recommend working with Petra.

Nadia Rossi Digital Marketing at 1834 Hotels Ecommerce / Hotel Google Ads April 23, 2020

leesa dawson

I am so grateful to have met you, as I think your insights are the BEST I have ever come across.

Leesa Dawson CEO, The Uniform Stylist Ecommerce Google Ads April 23, 2020

Sophie Abnett

Here at 1834 Hotels we centralise the marketing for many different hotels. It can be an enormous undertaking to monitor and track the performance of each one, especially when they are all on separate webpages.

Petra helped to resolve this difficulty by creating a central hub in Google Tag Manager and Google Analytics with Cross-domain tracking and Ecommerce as well. She created many valuable analytics dashboards and reports that draw from the centralized source. Now that we have all the analytics tracking working it has improved the accuracy of our reporting and the insights have helped develop better marketing strategies.

Petra’s skills and wealth of knowledge is fantastic. I would recommend Petra without hesitation.

Sophie Abnett Digital Marketing Project Manager at 1834 Hotels Ecommerce / Hotel Google Analytics, Google Tag Manager & Google Data Studio Integration April 23, 2020

Erica Stacey Scout Digital

I recently worked with Petra to improve my understanding of Google Tag Manager.

Petra not only provided a solid overview of GTM set up and event tracking, she also provided many tips on best practice, and answered the questions that I didn't even know to ask!

Petra is patient, fun to work with, and her analytical programming mind is hell bent on finding the BEST solution to any data, analytics or tracking problem.

Erica Stacey Scout Digital Marketing Strategy Session June 21, 2017

claudia impedovo

Our main purpose for generating these reports is about findings out information that will curb our strategy. The Audience Engagement Report provided us with a couple of new findings about our audience. We implemented elements to assist both of those findings and they have increased sales.

Claudia Impedovo Brand Manager at Spendless Shoes Ecommerce Google Analytics, Google Tag Manager & Google Data Studio Integration April 23, 2020