Halloween Sale 15% off Ends in See the plans

Snippet Library

Analytics & Tracking snippets for WordPress

Snippets for analytics and tracking: add Google Analytics, Tag Manager or ad pixels, exclude logged-in users and track clicks or form sends. For marketers who want the tracking code in place without editing the theme.

1–15 of 15 snippets “tracking”

  • HTML Analytics & Tracking

    Google Tag Manager (Body)

    Adds the Google Tag Manager noscript fallback right after the opening body tag. Use it together with the GTM head snippet.

  • HTML Analytics & Tracking

    Google Tag Manager (Head)

    Adds the Google Tag Manager container script to the head of every page. Use it together with the GTM body snippet.

  • PHP Analytics & Tracking

    Hotjar Tracking Code

    Adds Hotjar heatmaps and session recordings to your public pages, without recording logged-in staff.

  • PHP Analytics & Tracking

    Microsoft Advertising UET Tag

    Adds the Microsoft Advertising (Bing Ads) Universal Event Tracking tag to every public page for conversion tracking and remarketing.

  • PHP Analytics & Tracking

    Pinterest Tag

    Adds the Pinterest tag to every public page and records page visits, with an option to wait for cookie consent.

  • PHP Analytics & Tracking

    Reddit Pixel

    Adds the Reddit Ads pixel to every public page and tracks page visits, with an option to wait for cookie consent.

  • PHP Analytics & Tracking

    Simple Analytics

    Adds the cookie-free Simple Analytics script to your public pages. No tracking ID is needed: data is matched to the domain you added in Simple Analytics.

  • PHP Analytics & Tracking

    TikTok Pixel

    Adds the TikTok pixel to every public page and records page views, with an option to wait for cookie consent.

  • PHP Analytics & Tracking

    X (Twitter) Pixel

    Adds the X (formerly Twitter) website tag to every public page for conversion tracking and audiences, with an option to wait for cookie consent.

Have a snippet worth sharing?

Publish it to the library from WPIDE or right here. Sign in with any WordPress site that runs WPIDE, free or Pro. Public snippets are reviewed by the WPIDE team before they appear.