{"id":2171,"date":"2024-04-30T21:42:33","date_gmt":"2024-04-30T19:42:33","guid":{"rendered":"https:\/\/trackboxx.com\/?post_type=helpcenter&#038;p=2171"},"modified":"2026-06-20T19:18:16","modified_gmt":"2026-06-20T17:18:16","slug":"wordpress","status":"publish","type":"helpcenter","link":"https:\/\/trackboxx.com\/en\/helpcenter\/wordpress","title":{"rendered":"WordPress"},"content":{"rendered":"<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Depending on your WordPress theme, there are several ways to add the tracking script. This guide covers the most common options and lets you download the Trackboxx plugin for WordPress.<\/p>\n<\/blockquote>\n\n\n\n<div class=\"wp-block-stackable-call-to-action stk-block-call-to-action stk-block stk-e215782 is-style-default\" data-v=\"2\" data-block-id=\"e215782\"><div class=\"stk-block-call-to-action__content stk-content-align stk-e215782-column stk-container stk-e215782-container stk-hover-parent\"><div class=\"has-text-align-center stk-block-content stk-inner-blocks stk-e215782-inner-blocks\">\n<div class=\"wp-block-stackable-heading stk-block-heading stk-block-heading--v2 stk-block stk-55888e5\" id=\"download-word-press-plugin\" data-block-id=\"55888e5\"><h3 class=\"stk-block-heading__text\">Download WordPress plugin<\/h3><\/div>\n\n\n\n<div class=\"wp-block-stackable-button-group stk-block-button-group stk-block stk-0c93f40\" data-block-id=\"0c93f40\"><div class=\"stk-row stk-inner-blocks stk-block-content stk-button-group\">\n<div class=\"wp-block-stackable-button stk-block-button stk-block stk-b564d26\" data-block-id=\"b564d26\"><style>.stk-b564d26 .stk-button{padding-right:40px !important;padding-left:40px !important;background:linear-gradient(135deg,rgb(226,1,119) 0%,rgb(0,92,174) 99%) !important;border-top-left-radius:40px !important;border-top-right-radius:40px !important;border-bottom-right-radius:40px !important;border-bottom-left-radius:40px !important;}<\/style><a class=\"stk-link stk-button stk--hover-effect-darken\" href=\"https:\/\/trackboxx.com\/downloads\/trackboxx-analytics.zip\" target=\"_blank\" rel=\"noreferrer noopener\"><span class=\"stk--svg-wrapper\"><div class=\"stk--inner-svg\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 512 512\" aria-hidden=\"true\" width=\"32\" height=\"32\"><path d=\"M61.7 169.4l101.5 278C92.2 413 43.3 340.2 43.3 256c0-30.9 6.6-60.1 18.4-86.6zm337.9 75.9c0-26.3-9.4-44.5-17.5-58.7-10.8-17.5-20.9-32.4-20.9-49.9 0-19.6 14.8-37.8 35.7-37.8.9 0 1.8.1 2.8.2-37.9-34.7-88.3-55.9-143.7-55.9-74.3 0-139.7 38.1-177.8 95.9 5 .2 9.7.3 13.7.3 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l77.5 230.4L249.8 247l-33.1-90.8c-11.5-.7-22.3-2-22.3-2-11.5-.7-10.1-18.2 1.3-17.5 0 0 35.1 2.7 56 2.7 22.2 0 56.7-2.7 56.7-2.7 11.5-.7 12.8 16.2 1.4 17.5 0 0-11.5 1.3-24.3 2l76.9 228.7 21.2-70.9c9-29.4 16-50.5 16-68.7zm-139.9 29.3l-63.8 185.5c19.1 5.6 39.2 8.7 60.1 8.7 24.8 0 48.5-4.3 70.6-12.1-.6-.9-1.1-1.9-1.5-2.9l-65.4-179.2zm183-120.7c.9 6.8 1.4 14 1.4 21.9 0 21.6-4 45.8-16.2 76.2l-65 187.9C426.2 403 468.7 334.5 468.7 256c0-37-9.4-71.8-26-102.1zM504 256c0 136.8-111.3 248-248 248C119.2 504 8 392.7 8 256 8 119.2 119.2 8 256 8c136.7 0 248 111.2 248 248zm-11.4 0c0-130.5-106.2-236.6-236.6-236.6C125.5 19.4 19.4 125.5 19.4 256S125.6 492.6 256 492.6c130.5 0 236.6-106.1 236.6-236.6z\"\/><\/svg><\/div><\/span><span class=\"stk-button__inner-text\">Download now<\/span><\/a><\/div>\n<\/div><\/div>\n<\/div><\/div><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">You can also download our plugin directly from WordPress.org: <a href=\"https:\/\/wordpress.org\/plugins\/trackboxx-analytics\/\" target=\"_blank\" rel=\"noreferrer noopener\">DOWNLOAD FROM WORDPRESS.ORG<\/a><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Important: First, add your website in your Trackboxx dashboard.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest and fastest way to add Trackboxx to your website is to use our WordPress plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Important: The plugin also configures everything required to track a WooCommerce store automatically.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">WordPress plugin quick-start guide<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The setup wizard starts as soon as you install and activate the plugin.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"896\" src=\"https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-1024x896.png\" alt=\"\" class=\"wp-image-4320\" title=\"\" srcset=\"https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-1024x896.png 1024w, https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-300x263.png 300w, https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-768x672.png 768w, https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-1536x1344.png 1536w, https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx-14x12.png 14w, https:\/\/trackboxx.com\/wp-content\/uploads\/2024\/04\/onboarding-trackboxx.png 1705w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Enter your tracking ID<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Enter your website\u2019s tracking ID here. You\u2019ll find it in the Trackboxx dashboard under Settings (gear icon) &gt; Websites. Click \u201cTracking code\u201d next to the relevant website.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click the button to open the tracking code. The ID appears at the end and uses the following format:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>TB-XXXXXXX<\/em><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Show statistics in your WordPress dashboard (optional)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To display your statistics in the WordPress dashboard, enter the link to your public URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">How to create them you can find here::\u00a0<a href=\"https:\/\/trackboxx.com\/en\/helpcenter\/create-public-url\/\" target=\"_blank\" rel=\"noopener\">Create Public URL.<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Add an opt-out (optional)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To add an opt-out to your privacy policy, follow the instructions in step 3. For more integration options, click <a href=\"https:\/\/trackboxx.com\/en\/helpcenter\/integration-optout\/\">HERE<\/a>:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add the tracking script to WordPress manually<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">There are several ways to add the script to WordPress. Here are the most common options:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Add it via header.php<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Add the script manually to your theme\u2019s header file. Important: Use a child theme so your changes aren\u2019t overwritten the next time the theme is updated.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Add it through your theme settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Many themes include an option for adding code to the header. Popular examples include Avada, Divi and Enfold.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Add it to the Astra theme<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Astra is one of the most popular WordPress themes, so it deserves a separate mention. Install the \u201cAstra Hooks\u201d extension and add the tracking code to the header as a hook.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Add it using a plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">You can also add the tracking script using a suitable WordPress plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Search for \u201cWordPress tracking script plugin\u201d to find a range of suitable options.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Important: E-commerce tracking requires additional configuration. We strongly recommend using the Trackboxx WordPress plugin for this.<\/p>\n<\/blockquote>","protected":false},"featured_media":0,"template":"","categories":[],"tags":[27],"class_list":["post-2171","helpcenter","type-helpcenter","status-publish","hentry","tag-helpcenter-plugins-integrationen"],"acf":[],"_links":{"self":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/helpcenter\/2171","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/helpcenter"}],"about":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/types\/helpcenter"}],"version-history":[{"count":1,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/helpcenter\/2171\/revisions"}],"predecessor-version":[{"id":4954,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/helpcenter\/2171\/revisions\/4954"}],"wp:attachment":[{"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/media?parent=2171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/categories?post=2171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trackboxx.com\/en\/wp-json\/wp\/v2\/tags?post=2171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}