fix: auto-detect domain from hostname for zero-config GTM support #65

Merged
uz1mani merged 2 commits from staging into main 2026-03-19 12:59:05 +00:00
uz1mani commented 2026-03-19 12:58:54 +00:00 (Migrated from github.com)

When data-domain attribute and pulseConfig are both unavailable (common
with GTM which strips data-* attributes), the script now falls back to
location.hostname. This is safe because the backend already validates
Origin/Referer against the registered domain. Strips www. prefix on
auto-detected hostname to match typical Pulse registration patterns.

When data-domain attribute and pulseConfig are both unavailable (common with GTM which strips data-* attributes), the script now falls back to location.hostname. This is safe because the backend already validates Origin/Referer against the registered domain. Strips [www](http://www/). prefix on auto-detected hostname to match typical Pulse registration patterns.
Sign in to join this conversation.
No description provided.