Cloud UI Outbound Link URL Param (#1055)

* adding url param 'qdrant-tech' to outbound links to Cloud UI for the sake of tracking user journey (when consented)

* tagCloudUILinksWithHash() should not be conditional but occur before tracking events/elements are registered

* tagCloudUILinksWithHash within DOMContentLoaded and before registering All anchors for tracking

* import correction

* add new key/value pair to interaction

* uniform naming convention and remove "s" from key, and CROSS_SITE_URL_PARAM_KEY for uniformity
This commit is contained in:
jasonbryant84
2024-07-29 21:39:05 +02:00
committed by GitHub
parent 540b038c1d
commit df33a61423
3 changed files with 38 additions and 5 deletions
@@ -1,12 +1,13 @@
import scrollHandler from './scroll-handler';
import { XXL_BREAKPOINT } from './constants';
import { initGoToTopButton, getCookie } from './helpers';
import { initGoToTopButton, getCookie, tagCloudUILinksWithHash } from './helpers';
import { loadSegment, createSegmentStoredPage, tagAllAnchors } from './segment-helpers'
createSegmentStoredPage();
// on document ready
document.addEventListener('DOMContentLoaded', function () {
tagCloudUILinksWithHash();
tagAllAnchors();
if (!window.analytics && getCookie('cookie-consent')) {