Install and Verify the Tracking Script

The tracking script connects website visits to events in Konektor. Follow this order: copy the workspace code, install it on every page, open the website, and confirm that Konektor receives a real event. Ad-platform delivery is a separate, optional step.

Before you start

You need:

  • owner or admin access to the Konektor workspace;
  • permission to change the website header or Google Tag Manager container;
  • a website page that you can open for testing;
  • ad-platform credentials if you also want to send events to Meta, Google, or TikTok.
Never put an access token, API secret, or password in the website script. Enter platform credentials only in the Add Ad Platform form in the Konektor dashboard.

1. Copy code from the correct workspace

  1. Enter the workspace that you want to track.
  2. Open Website Tracking.
  3. Find the Unified Tracking Code card.
  4. If an ID is not available, click Generate tracking code.
  5. Click View Code, then click Copy Code.

Always use the complete code generated by the dashboard. Do not copy a sample ID from documentation or replace the workspace ID manually.

2. Choose one installation method

The script must load on every page that you want to track. Install it once through a method that applies site-wide.

HTML manual

  1. Open the website's main layout template.
  2. Paste the complete code before the closing </head> tag.
  3. Save, build, and publish the website.

If the website navigates without loading a new page, make sure the app also records PageView after each route change. Ask a developer to check this when the URL changes without a full page reload.

Google Tag Manager

  1. Open the website container in Google Tag Manager.
  2. Select Tags > New.
  3. Select Tag Configuration > Custom HTML.
  4. Paste the complete Konektor code.
  5. Under Triggering, select Initialization - All Pages.
  6. Save, use Preview to test, then Submit to publish the container.

Make sure the Google Tag Manager container itself is installed on the website. A tag that is only saved and not published does not run for visitors.

WordPress

Use a trusted feature or plugin that inserts code into the site-wide header.

  1. Open the header-code settings in WordPress.
  2. Paste the complete Konektor code into Header.
  3. Save the change.
  4. Clear the WordPress, caching-plugin, and CDN caches if used.

On WordPress.com, the ability to install JavaScript depends on the site's plan. See the WordPress header-code guide if you cannot find a code installation option.

Shopify

Back up or duplicate the theme before editing code.

  1. Open Online Store > Themes.
  2. Open the action menu for the active theme, then select Edit code.
  3. Open the main layout file, usually theme.liquid.
  4. Paste the complete Konektor code before </head>.
  5. Click Save, then open the published storefront.

See the Shopify theme-code guide if your theme has a different structure.

Landing-page builder

Look for a setting named Custom Code, Tracking Script, Header Script, or something similar. Paste the code into the global header area, not into a single page element.

If the platform has separate public and checkout pages, check whether the code must be installed in both areas. Use the platform's official help because menu names can differ.

3. Send and verify a website event

Run this test on the published website, not only inside its editor.

  1. Open the website in a private or incognito window.
  2. Open a page that contains the Konektor code.
  3. Return to the Konektor member dashboard.
  4. In the Activate one thing first panel, click Check again.
  5. Confirm that the website step says an event, such as PageView, was received.
  6. Confirm that the header shows Event verified. The header updates with the panel.

Before an event arrives, the header can show Tracking not tested or Waiting for event. The successful website-tracking status is Event verified.

A real event is the required evidence

A loaded tracker.min.js file only proves that the browser found the script. Konektor marks website tracking as verified after receiving a real event. Test platform does not replace this website test.

4. Optional: add an ad platform

Skip this section if you only need to confirm that website tracking works. Add an ad platform after the header shows Event verified.

  1. Open Website Tracking.
  2. Click Add Ad Platform.
  3. Select a platform.
  4. Enter the values from that platform account.
  5. Click Save.

Use these guides for credentials and event mapping:

By default, the Konektor script does not automatically load an ad platform's browser tag. If you already manage Meta Pixel, Google tag, or TikTok Pixel through Google Tag Manager or website code, keep the browser tag there to avoid duplicate installation.

5. Optional: test platform delivery

  1. On the platform card in Konektor, click Test platform.
  2. Enter the Event Name and any required test data.
  3. For Meta, enter a Test Event Code from Test Events when the test requires it.
  4. Click Send Test Event.
  5. Check the result in Konektor and the platform's test tool.
ResultMeaning
acceptedThe platform accepted the test event.
partial_failureSome data was accepted, but part of the payload needs attention.
skippedThe event was not sent because an identifier or required field is missing.
ErrorCheck the credentials, ID, account permissions, and error message.

A saved platform configuration does not prove that delivery works. Platform delivery is verified after the destination accepts a test event. This result does not change the required website-tracking evidence.

Optional settings

Tracking Host Allowlist

Use the allowlist when only specific domains should be allowed to send events.

  1. In the Unified Tracking Code card, open Tracking Host Allowlist.
  2. Enter one host per line, such as example.com and www.example.com.
  3. Click Save Allowlist.
  4. Test the website again.

When the list is empty, all hosts are allowed. When it contains entries, a website domain that is not listed is rejected.

Custom domain

After adding or changing a custom domain in Konektor, open Unified Tracking Code again and copy the latest code. This is safer than editing domain options inside the script manually.

Troubleshooting

SymptomWhat to check
The activation panel does not say an event was receivedOpen a published website page, wait briefly, then click Check again.
The panel is complete but the header has not changedClick Check again once. The panel and header fetch the latest evidence together.
tracker.min.js does not appear in the browser Network tabConfirm that the code is in the global header, the change is published, and caches are cleared.
The script request is blockedTest without a blocking extension, check Content Security Policy, and confirm that the website does not block the CDN domain.
A domain-not-allowed message appearsAdd the exact website host to Tracking Host Allowlist, or clear the list if you do not need the restriction yet.
Events appear twiceLook for duplicate Konektor installation in the theme, plugins, and Google Tag Manager. Also check for platform browser tags installed through more than one method.
No website event arrives even though the script loadsCheck browser errors, the domain allowlist, and whether PageView runs after init.
The platform does not receive the test eventFix the configuration under Website Tracking, then run Test platform again.
A test event is skippedAdd the identifier and required data described in the result message.
A change is not visiblePublish the container or website, then clear browser, website, and CDN caches.

If the problem continues, record the test-page URL, test time, and error message. Hide access tokens, API secrets, customer identities, and personal data before sharing screenshots.

Next steps

Need More Help?

Our team is ready to help you maximize ad tracking and business attribution.

Email Supportsupport@konektor.id
YouTubeYouTube

© 2026 Konektor. All rights reserved.