1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5004],{26861:(e,r,s)=>{"use strict";s.r(r),s.d(r,{default:()=>n});var t=s(37876),l=s(14232),a=s(77328),o=s.n(a);function n(){var e;let[r,s]=(0,l.useState)(null),[a,n]=(0,l.useState)([]);return(0,l.useEffect)(()=>{let e=localStorage.getItem("tracking_data");e&&s(JSON.parse(e)),n(Array.from(document.querySelectorAll('a[href*="app.checklyhq.com"]')).map(e=>e.href))},[]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(o(),{children:[(0,t.jsx)("title",{children:"Attribution Testing - Checkly"}),(0,t.jsx)("meta",{name:"robots",content:"noindex, nofollow"})]}),(0,t.jsx)("div",{className:"container py-20",children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,t.jsx)("h1",{className:"mb-8 text-4xl font-bold",children:"Attribution Testing Page"}),(0,t.jsxs)("div",{className:"p-6 mb-8 bg-blue-50 rounded-lg border border-blue-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83E\uDDEA Test Scenarios"}),(0,t.jsx)("p",{className:"mb-4",children:"Add these parameters to the URL to test different attribution scenarios:"}),(0,t.jsxs)("ul",{className:"space-y-2 font-mono text-sm",children:[(0,t.jsxs)("li",{className:"p-3 bg-white rounded border",children:[(0,t.jsx)("strong",{children:"Google Ads:"}),(0,t.jsx)("br",{}),"?utm_source=google&utm_medium=cpc&utm_campaign=brand&gclid=test123"]}),(0,t.jsxs)("li",{className:"p-3 bg-white rounded border",children:[(0,t.jsx)("strong",{children:"Facebook Ads:"}),(0,t.jsx)("br",{}),"?utm_source=facebook&utm_medium=paid-social&utm_campaign=retargeting&fbclid=test456"]}),(0,t.jsxs)("li",{className:"p-3 bg-white rounded border",children:[(0,t.jsx)("strong",{children:"Organic:"}),(0,t.jsx)("br",{}),"?utm_source=google&utm_medium=organic&utm_campaign=seo"]}),(0,t.jsxs)("li",{className:"p-3 bg-white rounded border",children:[(0,t.jsx)("strong",{children:"Email:"}),(0,t.jsx)("br",{}),"?utm_source=newsletter&utm_medium=email&utm_campaign=december-2024"]})]})]}),(0,t.jsxs)("div",{className:"grid gap-6 mb-8 md:grid-cols-2",children:[(0,t.jsxs)("div",{className:"p-6 bg-gray-50 rounded-lg border border-gray-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDCCD Current URL"}),(0,t.jsx)("p",{className:"p-3 font-mono text-sm break-all bg-white rounded border",children:window.location.href})]}),(0,t.jsxs)("div",{className:"p-6 bg-gray-50 rounded-lg border border-gray-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDD17 Referrer"}),(0,t.jsx)("p",{className:"p-3 font-mono text-sm break-all bg-white rounded border",children:document.referrer?document.referrer:"(No referrer)"})]})]}),(0,t.jsxs)("div",{className:"p-6 mb-8 bg-green-50 rounded-lg border border-green-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDCBE Tracking Data (localStorage)"}),r?(0,t.jsx)("pre",{className:"overflow-auto p-4 text-xs bg-white rounded border",children:JSON.stringify(r,null,2)}):(0,t.jsx)("p",{className:"italic text-gray-600",children:"No tracking data found in localStorage"})]}),(0,t.jsxs)("div",{className:"p-6 mb-8 bg-purple-50 rounded-lg border border-purple-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDD17 Modified App Links"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-gray-600",children:"These links should automatically include all tracking parameters:"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsx)("a",{href:"https://app.checklyhq.com/signup",className:"block text-center button button-lg",target:"_blank",rel:"noopener noreferrer",children:"Sign Up (New Tab)"}),(0,t.jsx)("a",{href:"https://app.checklyhq.com/login",className:"block text-center button button-secondary button-lg",children:"Login (Same Tab)"})]})]}),(0,t.jsxs)("div",{className:"p-6 mb-8 bg-yellow-50 rounded-lg border border-yellow-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDD0D Actual Link URLs (After Script)"}),a.length>0?(0,t.jsx)("div",{className:"space-y-2",children:a.map((e,r)=>(0,t.jsx)("div",{className:"p-3 bg-white rounded border",children:(0,t.jsx)("p",{className:"font-mono text-xs break-all",children:e})},r))}):(0,t.jsx)("p",{className:"italic text-gray-600",children:"No app links foun
1d yet (script may still be loading)"})]}),(0,t.jsxs)("div",{className:"p-6 bg-gray-50 rounded-lg border border-gray-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83D\uDCCB How to Test"}),(0,t.jsxs)("ol",{className:"space-y-2 list-decimal list-inside",children:[(0,t.jsx)("li",{children:"Add UTM parameters to this page's URL (see test scenarios above)"}),(0,t.jsx)("li",{children:"Refresh the page"}),(0,t.jsx)("li",{children:'Check that the "Tracking Data" section shows your parameters'}),(0,t.jsx)("li",{children:'Check that the "Actual Link URLs" include all your parameters + HubSpot token'}),(0,t.jsx)("li",{children:"Hover over the buttons to see the full URL in the browser status bar"}),(0,t.jsx)("li",{children:"Click a button and verify the parameters appear in the app URL"})]})]}),(0,t.jsxs)("div",{className:"p-6 mt-8 bg-gray-50 rounded-lg border border-gray-200",children:[(0,t.jsx)("h2",{className:"mb-4 text-xl font-bold",children:"\uD83C\uDF6A HubSpot Cookie"}),(0,t.jsx)("p",{className:"p-3 font-mono text-xs break-all bg-white rounded border",children:(null==(e=document.cookie.split("; ").find(e=>e.startsWith("hubspotutk=")))?void 0:e.split("=")[1])||"(No HubSpot cookie found)"})]})]})})]})}},66076:(e,r,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/attribution-test",function(){return s(26861)}])}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=66076)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.