PageSourceSearch

https://99designs.ca/accounts/accounts.js

js 99designs.ca collected 2026-10-02 15:01:13 UTC 3,310 bytes, 81 lines download raw bytes

1(function() {
2    function getAndDeleteCookie(name) {
3        var value = "; " + document.cookie;
4        var parts = value.split("; " + name + "=");
5
6        if (parts.length == 2) {
7            document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
8            return parts.pop().split(";").shift();
9        }
10    }
11
12    var cookie = getAndDeleteCookie('_99ud');
13
14    if (!cookie) {
15        console.log("analytics disabled, cookie missing");
16    } else {
17        var data = {};
18
19        try {
20            data = JSON.parse(atob(cookie));
21        } catch(error) {
22            throw new Error(error + ' malformedData: ' + cookie);
23        }
24
25        window.dataLayer = window.dataLayer || [];
26        data.gtm.experiments = data.trackParams.experiments || {};
27        dataLayer.push(data.gtm);
28
29        window.accountsUser = data.user;
30        window.trackParams = data.trackParams;
31        window.pageTrackParams = {
32            country_code: "US",
33            domain_sessionidx: 1,
34            device_family: "Spider",
35            device_os: "Other",
36            br_family: "PageSourceSearchBot",
37            br_version: "1.0",
38        };
39
40        
41
42        
43        !function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(t){return function(){var e=Array.prototype.slice.call(arguments);e.unshift(t);analytics.push(e);return analytics}};for(var t=0;t<analytics.methods.length;t++){var e=analytics.methods[t];analytics[e]=analytics.factory(e)}analytics.load=function(t,e){var n=document.createElement("script");n.type="text/javascript";n.async=!0;n.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(n,a);analytics._loadOptions=e};analytics.SNIPPET_VERSION="4.1.0";}}();
44        analytics.setAnonymousId(data.sessionId);
45        analytics.page({
46            url: document.location.href,
47            path: document.location.pathname,
48            country_code: "US",
49            domain_sessionidx: 1,
50            device_family: "Spider",
51            device_os: "Other",
52            br_family: "PageSourceSearchBot",
53            br_version: "1.0",
54        })
55        
56
57        
58
59        if (!data.IsAdminMasquerading) {
60            analytics.load("uGchVqH1N7u7wLNJcBCRg1oIO9Gl6Lpa");
61        }
62
63        
64        if (data.userID) {
65            analytics.identify(
66                data.userID,
67                data.segmentUser,
68                {
69                    integrations: {
70                        // disable identify call for hubspot due to it overloading our HubSpot API limits
71                        'HubSpot': false,
72                        // disable identify call for Iterable due to hitting API limits
73                        'Iterable': false,
74                    }
75                }
76            );
77
78            
79        }
80    }
81})();

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.