Skip to content

Commit

Permalink
Merge pull request #146 from SpeciesFileGroup/development
Browse files Browse the repository at this point in the history
Fix #144
  • Loading branch information
José Luis Pereira authored and GitHub committed Sep 18, 2023
2 parents ce7cd05 + 75e9610 commit e14300c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
24 changes: 24 additions & 0 deletions src/components/Footer/FooterAnalytics.vue
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>
12 changes: 5 additions & 7 deletions src/components/Layout/LayoutFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@

<hr class="mt-3 mb-3 border-gray-500" />

<div class="flex justify-between">
<div class="flex items-center">
<div class="flex flex-col sm:flex-row justify-between gap-4">
<div class="[&>*:not(:last-child)]:after:content-['|'] [&>*:not(:last-child)]:after:mx-1">
<span>
Data provided by
<a
Expand All @@ -48,9 +48,6 @@
TaxonWorks
</a>
</span>

<span class="ml-2 mr-2">|</span>

<span>
Pages by
<a
Expand All @@ -61,7 +58,6 @@
TaxonPages
</a>
</span>
<span class="ml-2 mr-2">|</span>
<span>
Support (Services) by
<a
Expand All @@ -72,11 +68,12 @@
Species File Group
</a>
</span>
<FooterAnalytics class="italic"/>
</div>
<TrackerReport
icon
label="Report a problem"
button-class="flex gap-2 items-center pl-0 pr-0 pt-0 pb-0"
button-class="flex gap-2 items-center pl-0 pr-0 pt-0 pb-0 self-end"
/>
</div>
</div>
Expand All @@ -86,6 +83,7 @@
<script setup>
import { computed } from 'vue'
import { useRoute } from 'vue-router'
import FooterAnalytics from '@/components/Footer/FooterAnalytics.vue'
const {
project_authors,
Expand Down

0 comments on commit e14300c

Please sign in to comment.