• Resolved Trenton Talbot

    (@ttalbot)


    Is it possible to track visits to non-Wordpress pages (plain HTML, for example) on the same website? Some tracking snippet maybe?…

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hessel de Jong

    (@hesseldejong)

    Hi @ttalbot,

    Sorry for the late reply! We totally missed your support request.

    It is possible, but not super simple at the moment. We plan on making it easier, so you can use Burst for ‘on-premise’ tracking.

    I can provide you with a snippet you can use, let me know if that is something you want.

    Kind regards,
    Hessel

    Thread Starter Trenton Talbot

    (@ttalbot)

    Oh, a snippet is exactly what I need, thanks!

    Plugin Author Hessel de Jong

    (@hesseldejong)

    Hi @ttalbot,

    I took my time to write down the instructions. It is not the simplest, but it is do-able. Here you go:

    At the bottom of this text are the scripts you need to incorporate Burst into a non-WordPress website. You can apply them to another website or subdomain. Be sure to adjust the settings to your preference and replace domain.com with the domain where Burst is installed. Additionally, depending on whether you’re using Burst Pro or Burst Free, change the plugin’s path from ‘burst-pro’ to ‘burst-statistics’.

    We highly recommend loading the ‘timeme.min.js’ script as early as possible.

    The ‘burst-js-extra’ contains Burst Settings. You should modify the URLs and adjust the options to match your settings, where 0 represents false and 1 represents true. You can also duplicate these settings from your WordPress website’s source. Follow these steps to do so:

    1. Open an incognito window.
    2. Visit your website.
    3. Inspect the page (Right-click > ‘Inspect’ or ‘Inspect Element’).
    4. Search for ‘burst-js-extra’.
    5. Copy and apply to your other website or webpage.

    We plan on moving this inside the script, so you don’t have to do this manually. Please upcoming versions if this has been moved.

    For the ‘burst.min.js’ script, you can choose when to load this script based on what you think is more important: getting very accurate data or making your website load faster for visitors.

    • Load Early: If you load the script early, you’ll get better data because it counts more visitors, even those who leave quickly.
    • Load Late: If you load the script late, your website loads faster for visitors, but you might miss counting some of them.

    What We Think Is Best: We recommend loading the script late to make your website faster for visitors, even though it might miss counting a few.

    // place this as high as possible, so the time on page is as accurate as possible
    <script async="" src="<https://domain.com/wp-content/plugins/burst-pro/helpers/timeme/timeme.min.js>" id="burst-timeme-js"></script>
    
    // You can decide when to load this script: focus on better data or faster website loading.
    //
    // Load Early: Gets you better data by counting more visitors, including those who leave quickly.
    // Load Late: Makes your website load faster for visitors, but might miss counting some.
    //
    // Our recommendation: Load the script late for a faster website, even if it means missing some data.
    <script id="burst-js-extra">
     var burst = {"url":"https:\\/\\/domain.com\\/wp-content\\/plugins\\/burst-pro\\/endpoint.php","page_id":"","cookie_retention_days":"30","beacon_url":"https:\\/\\/domain.com\\/wp-content\\/plugins\\/burst-pro\\/endpoint.php","options":{"beacon_enabled":1,"enable_cookieless_tracking":0,"enable_turbo_mode":1,"do_not_track":0},"goals":[],"goals_script_url":"https:\\/\\/domain.com\\/wp-content\\/plugins\\/burst-pro\\/\\/assets\\/js\\/build\\/burst-goals.js?v=1.5.6"};
    </script>
    <script defer="" src="<https://domain.com/wp-content/plugins/burst-pro/assets/js/build/burst.min.js>" id="burst-js"></script>
    

    If you have any questions please let us know! We’re happy to help!

    Kind regards,
    Hessel

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Tracking non-WP pages’ is closed to new replies.