1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 "https://wordpress.org",
13 "https://www.hubspot.com",
14 "https://www.nytimes.com"
15 ],
16 "filterTechnologies": [
17 "Google Tag Manager",
18 "Google Analytics",
19 "Linkedin Insight Tag",
20 "Cloudflare Browser Insights",
21 "Naver Analytics",
22 "Hotjar",
23 "Mixpanel",
24 "Segment",
25 "Amplitude",
26 "Microsoft Clarity",
27 "Matomo",
28 "Plausible",
29 "Heap",
30 "FullStory",
31 "Meta Pixel",
32 "Facebook Pixel",
33 "TikTok Pixel",
34 "Pinterest Tag",
35 "Snapchat Pixel",
36 "Adobe Analytics",
37 "Piwik PRO",
38 "Fathom",
39 "Simple Analytics",
40 "Umami",
41 "Tealium",
42 "Adobe Experience Platform Launch"
43 ],
44 "onlyMatching": false
45};
46
47
48const run = await client.actor("keystonelabs/website-analytics-detector").call(input);
49
50
51console.log('Results from dataset');
52console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
53const { items } = await client.dataset(run.defaultDatasetId).listItems();
54items.forEach((item) => {
55 console.dir(item);
56});
57
58