• Hello How can I count clicks on external urls clicked from within my WordPress site? There is a place in the theme to add custom html code for each block.Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can use Google Analytics. The Google “Site Kit” WordPress plugin is a good starting point. However, there may be additional setting up needed to track link clicks.

    Thread Starter nicallen

    (@nicallen)

    Thank you so much. I don’t need to track the links only count how many clicks. Best.

    Moderator bcworkz

    (@bcworkz)

    You could use JavaScript to install click event listeners on any links you want to track. The listener callback can send an Ajax request to your server, which could keep a tally of how many Ajax requests it gets from your script. That’s essentially what Google Analytics does for you (except going to Google servers instead of yours). I think GA is your easiest option even if you don’t want to make full use of what it can provide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Counting clicks’ is closed to new replies.