-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from SpeciesFileGroup/development
Fix #144
- Loading branch information
Showing
2 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <template> | ||
| <span v-if="analytics">This site use {{ analytics }}.</span> | ||
| </template> | ||
|
|
||
| <script setup> | ||
| const ANALYTICS_LOADERS = { | ||
| analytics: 'Google Analytics', | ||
| gtm: 'Google Tag Manager', | ||
| pixel: 'Facebook Pixel', | ||
| retargeting: 'VK Retargeting', | ||
| linkedin: 'Linkedin Insight', | ||
| tongji: 'Baidu Tongji', | ||
| metrica: 'Yandex Metrica', | ||
| microsoft: 'Microsoft Analytics', | ||
| hotjar: 'Hotjar Analytics', | ||
| fullStory: 'Full story Analytics', | ||
| unbounce: 'Unbounce conversion analytics', | ||
| tiktok: 'TikTok Pixel Analytics' | ||
| } | ||
| const analyticKeys = Object.keys(__APP_ENV__.analytics_services || {}) | ||
| const analytics = analyticKeys.map(key => ANALYTICS_LOADERS[key]).filter(Boolean).join('; ') | ||
| </script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters