admin管理员组文章数量:1391999
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:
In google analytics it only goes as far as:
/
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?
Post type:
register_post_type('product', array(
'supports' => array('title', 'editor', 'thumbnail', 'excerpt'),
'rewrite' => array('slug' => 'product'),
'has_archive' => true,
'public' => true,
'labels' => array(
'name' => 'Products',
'add_new_item' => 'Add New Product',
'edit_item' => 'Edit Product',
'all_items' => 'All Products',
),
'menu_icon' => 'dashicons-cart'
));
Plugin used:
/
本文标签: Google analytics not picking up custom post type
版权声明:本文标题:Google analytics not picking up custom post type 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744773440a2624481.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论