{"id":4180,"date":"2026-11-26T07:47:02","date_gmt":"2026-11-25T23:47:02","guid":{"rendered":"https:\/\/www.hitsteps.com\/blog\/surecart-analytics\/"},"modified":"2026-11-26T07:48:08","modified_gmt":"2026-11-25T23:48:08","slug":"surecart-analytics","status":"publish","type":"post","link":"https:\/\/www.hitsteps.com\/blog\/surecart-analytics\/","title":{"rendered":"SureCart Analytics: Add Hitsteps to Your WordPress Store"},"content":{"rendered":"<p>Understand the visits behind your SureCart store. Hitsteps adds visitor journeys, heatmaps and search performance reports to your WordPress site, so you can see which pages bring shoppers in and what they explore next.<\/p>\n<h2>Add Hitsteps to your store<\/h2>\n<ol>\n<li>Install <a href=\"https:\/\/wordpress.org\/plugins\/hitsteps-visitor-manager\/\">Hitsteps Web Analytics on WordPress.org<\/a>, then activate it.<\/li>\n<li>In WordPress, open the Hitsteps settings. Choose <strong>Create account and connect<\/strong>, or connect an existing account. The plugin installs the tracking code for you.<\/li>\n<li>Open your storefront in a private browser window for your first visit, then open the Hitsteps dashboard. This keeps the check outside your WordPress administrator session. Explore live visitors and journeys, and review heatmaps as your data arrives.<\/li>\n<li>To populate Google Search Console reports, connect a verified Google property to your Hitsteps account.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/www.hitsteps.com\/register.php?utm_source=hst_blog&amp;utm_medium=blog_article&amp;utm_campaign=surecart_recipe\">Create a free Hitsteps account<\/a><\/p>\n<h2>Count completed embedded checkouts as a Goal<\/h2>\n<p>For a SureCart checkout embedded on your own WordPress pages, you can also send a Hitsteps Goal when checkout completes. Create a Goal with the <strong>Manual<\/strong> trigger, then replace <code>123<\/code> below with its Goal ID. Set <code>goalCurrency<\/code> to the currency configured for your Hitsteps reporting and <code>unitsPerWhole<\/code> to the matching SureCart amount divisor. For example, use <code>100<\/code> for USD cents and <code>1<\/code> for a zero-decimal currency such as JPY.<\/p>\n<p>Add the script to the footer of the WordPress page that contains your embedded checkout. It listens for SureCart&#8217;s <code>scCheckoutCompleted<\/code> event and reads the order total from <code>event.detail.total_amount<\/code>. Keep the Hitsteps tracker active on that page so it is ready when the checkout completes.<\/p>\n<pre><code class=\"language-html\">&lt;script&gt;\n(function () {\n  const goalId = 123; \/\/ Replace with your Hitsteps Manual Goal ID.\n  const goalCurrency = 'USD'; \/\/ Match your SureCart and Hitsteps reporting currency.\n  const unitsPerWhole = 100; \/\/ Use 1 for a zero-decimal currency such as JPY.\n  const sentCheckouts = new Set();\n\n  document.addEventListener('scCheckoutCompleted', function (event) {\n    const tracker = window.hitsteps;\n    if (!tracker || typeof tracker.trackGoal !== 'function') return;\n\n    const checkout = event.detail || {};\n    const checkoutId = checkout.id;\n    if (checkoutId &amp;&amp; sentCheckouts.has(checkoutId)) return;\n\n    const total = checkout.total_amount;\n    const currency = String(checkout.currency || '').toUpperCase();\n    const value = currency === goalCurrency &amp;&amp; Number.isSafeInteger(total) &amp;&amp; total &gt;= 0\n      ? total \/ unitsPerWhole\n      : undefined;\n\n    const sent = value === undefined || value &gt; 9999999999999.99\n      ? tracker.trackGoal(goalId)\n      : tracker.trackGoal(goalId, value);\n    if (sent &amp;&amp; checkoutId) sentCheckouts.add(checkoutId);\n  });\n})();\n&lt;\/script&gt;\n<\/code><\/pre>\n<p>The Goal is sent once for each completed checkout ID during the current page load. This recipe is for checkouts embedded on your own WordPress pages.<\/p>\n<p><a href=\"https:\/\/www.hitsteps.com\/register.php?utm_source=hst_blog&amp;utm_medium=blog_article&amp;utm_campaign=surecart_recipe\">Start with Hitsteps<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>See where SureCart shoppers come from, what they view, and how they move through your WordPress store with Hitsteps.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-4180","post","type-post","status-publish","format-standard","hentry","category-news"],"_links":{"self":[{"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/posts\/4180","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/comments?post=4180"}],"version-history":[{"count":1,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/posts\/4180\/revisions"}],"predecessor-version":[{"id":4183,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/posts\/4180\/revisions\/4183"}],"wp:attachment":[{"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/media?parent=4180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/categories?post=4180"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hitsteps.com\/blog\/wp-json\/wp\/v2\/tags?post=4180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}