Google analytics not picking up custom post type

I have installed a basic google analytics plugin and for the most part it works. It tracks all the pages and even taxonomies but not the custom post type. So, once you drill down on the actual website to:

https://example.com/product/some-category/some-item

In google analytics it only goes as far as:

https://example.com/product/some-category/

leaving off the item.

When I view the source of the custom post type product item page, I can see that the tracking code is there.

Does anyone know why this might be happening?

Read more here:: Google analytics not picking up custom post type

Leave a Reply

Your email address will not be published. Required fields are marked *