|
| 1 | +/** |
| 2 | + * Constants for analytics event generation |
| 3 | + */ |
| 4 | + |
| 5 | +export const BROWSERS = ['Chrome', 'Firefox', 'Safari', 'Edge', 'Opera']; |
| 6 | +export const OS_NAMES = ['Windows', 'macOS', 'Linux', 'Android', 'iOS']; |
| 7 | +export const DEVICE_TYPES = ['desktop', 'mobile', 'tablet'] as const; |
| 8 | + |
| 9 | +export const CUSTOM_EVENTS = [ |
| 10 | + 'click', |
| 11 | + 'button_click', |
| 12 | + 'form_submit', |
| 13 | + 'signup', |
| 14 | + 'login', |
| 15 | + 'logout', |
| 16 | + 'purchase', |
| 17 | + 'add_to_cart', |
| 18 | + 'remove_from_cart', |
| 19 | + 'checkout_started', |
| 20 | + 'search', |
| 21 | + 'filter_applied', |
| 22 | + 'video_play', |
| 23 | + 'video_pause', |
| 24 | + 'download', |
| 25 | + 'newsletter_signup', |
| 26 | + 'contact_form', |
| 27 | + 'feature_toggle', |
| 28 | + 'share', |
| 29 | + 'error_occurred', |
| 30 | + 'api_call', |
| 31 | + 'user_interaction', |
| 32 | +] as const; |
| 33 | + |
| 34 | +export const BLOG_CATEGORIES = [ |
| 35 | + 'tech', |
| 36 | + 'business', |
| 37 | + 'marketing', |
| 38 | + 'design', |
| 39 | + 'development', |
| 40 | + 'startup', |
| 41 | + 'ai', |
| 42 | + 'saas', |
| 43 | + 'mobile', |
| 44 | + 'web', |
| 45 | + 'data', |
| 46 | + 'security', |
| 47 | + 'cloud', |
| 48 | + 'api', |
| 49 | + 'tutorial', |
| 50 | +] as const; |
| 51 | + |
| 52 | +export const PRODUCT_CATEGORIES = [ |
| 53 | + 'software', |
| 54 | + 'hardware', |
| 55 | + 'books', |
| 56 | + 'courses', |
| 57 | + 'templates', |
| 58 | + 'tools', |
| 59 | + 'services', |
| 60 | + 'consulting', |
| 61 | + 'hosting', |
| 62 | + 'analytics', |
| 63 | +] as const; |
| 64 | + |
| 65 | +export const COMPANY_SECTIONS = [ |
| 66 | + 'about', |
| 67 | + 'team', |
| 68 | + 'careers', |
| 69 | + 'investors', |
| 70 | + 'press', |
| 71 | + 'contact', |
| 72 | + 'support', |
| 73 | + 'help', |
| 74 | + 'faq', |
| 75 | + 'terms', |
| 76 | + 'privacy', |
| 77 | + 'security', |
| 78 | + 'status', |
| 79 | +] as const; |
| 80 | + |
| 81 | +export const REFERRERS = [ |
| 82 | + 'direct', |
| 83 | + 'https://google.com/search', |
| 84 | + 'https://www.google.com/search', |
| 85 | + 'https://bing.com/search', |
| 86 | + 'https://duckduckgo.com', |
| 87 | + 'https://yahoo.com/search', |
| 88 | + 'https://facebook.com', |
| 89 | + 'https://www.facebook.com', |
| 90 | + 'https://twitter.com', |
| 91 | + 'https://x.com', |
| 92 | + 'https://linkedin.com', |
| 93 | + 'https://www.linkedin.com', |
| 94 | + 'https://instagram.com', |
| 95 | + 'https://reddit.com', |
| 96 | + 'https://www.reddit.com', |
| 97 | + 'https://youtube.com', |
| 98 | + 'https://tiktok.com', |
| 99 | + 'https://github.com', |
| 100 | + 'https://stackoverflow.com', |
| 101 | + 'https://medium.com', |
| 102 | + 'https://dev.to', |
| 103 | + 'https://hackernews.com', |
| 104 | + 'https://producthunt.com', |
| 105 | + 'https://indiehackers.com', |
| 106 | + 'https://techcrunch.com', |
| 107 | + 'https://vercel.com', |
| 108 | + 'https://netlify.com', |
| 109 | + 'https://aws.amazon.com', |
| 110 | + 'https://cloud.google.com', |
| 111 | + 'https://azure.microsoft.com', |
| 112 | + 'https://digitalocean.com', |
| 113 | + 'https://heroku.com', |
| 114 | + 'https://railway.app', |
| 115 | + 'https://planetscale.com', |
| 116 | + 'https://supabase.com', |
| 117 | + 'https://clerk.com', |
| 118 | + 'https://auth0.com', |
| 119 | + 'https://stripe.com', |
| 120 | + 'https://paddle.com', |
| 121 | + 'https://lemonsqueezy.com', |
| 122 | + 'https://gumroad.com', |
| 123 | + 'https://mailchimp.com', |
| 124 | + 'https://convertkit.com', |
| 125 | + 'https://substack.com', |
| 126 | + 'https://notion.so', |
| 127 | + 'https://airtable.com', |
| 128 | + 'https://figma.com', |
| 129 | + 'https://canva.com', |
| 130 | + 'https://discord.com', |
| 131 | + 'https://slack.com', |
| 132 | + 'https://telegram.org', |
| 133 | + 'https://whatsapp.com', |
| 134 | +] as const; |
| 135 | + |
| 136 | +export const CUSTOM_EVENT_NAMES = new Set<string>(CUSTOM_EVENTS as unknown as string[]); |
0 commit comments