• Hi,

    I have created posts with WP. They contain an image.
    I am displaying those posts on my homepage thanks to a shortcode :
    [display-posts id=”id of the post” display-posts include_title=”false” display-posts include_content=”true”]
    This shortcode is understood thanks to the plugin : https://wordpress.org/plugins/display-posts-shortcode/

    It works : when I load the page https://www.successstoriesworldmap.com/home_2/ I can see the post’s images been displayed.

    The problem is with Google Analytics report :
    – when the posts are displayed on home_2 page it seems the tracking of the different posts are not activated : I made a test with a friend to load the home_2 page and the number of unique views of the posts being displayed did not increase.
    – however when my friend goes directly to the post page for example https://www.successstoriesworldmap.com/ferrari
    in that case I can see on GA report for ferrari post that the number of unique visitor increased.

    How can I make that when the posts are displayed on my home_2 page thanks to the shortcode, the tracking code for thoses displayed posts are activated ?

    Thanks

    • This topic was modified 6 years, 11 months ago by vharel.
    • This topic was modified 6 years, 11 months ago by vharel.
    • This topic was modified 6 years, 11 months ago by vharel.
    • This topic was modified 6 years, 11 months ago by vharel.
  • The topic ‘Tracking code not working on posts that are displayed on my homepage’ is closed to new replies.