Skip to content

Commit

Permalink
Merge pull request #194 from neiesc/feature/ga-partinal
Browse files Browse the repository at this point in the history
Feature/ga partinal
  • Loading branch information
neiesc authored Nov 30, 2019
2 parents e520611 + d6a46d0 commit f65ad1c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 46 deletions.
16 changes: 1 addition & 15 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,20 +227,6 @@ <h4>Social Networks</h4>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-56663343-4"
></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'UA-56663343-4', { optimize_id: 'GTM-5NXKCXJ' })
</script>
<%=require("html-loader!./shared/google_analytics.html")%>
</body>
</html>
16 changes: 1 addition & 15 deletions src/palestras/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,20 +131,6 @@ <h3 class="uk-card-title">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-56663343-4"
></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'UA-56663343-4', { optimize_id: 'GTM-5NXKCXJ' })
</script>
<%=require("html-loader!../shared/google_analytics.html")%>
</body>
</html>
16 changes: 1 addition & 15 deletions src/podcasts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,6 @@ <h3 class="uk-card-title">Podcasts</h3>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/uikit-icons.min.js"></script>

<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-56663343-4"
></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'UA-56663343-4', { optimize_id: 'GTM-5NXKCXJ' })
</script>
<%=require("html-loader!../shared/google_analytics.html")%>
</body>
</html>
15 changes: 15 additions & 0 deletions src/shared/google_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!-- Global site tag (gtag.js) - Google Analytics -->
<script
async
src="https://www.googletagmanager.com/gtag/js?id=UA-56663343-4"
></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}
gtag('js', new Date())

gtag('config', 'UA-56663343-4', { optimize_id: 'GTM-5NXKCXJ' })
</script>
1 change: 0 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ module.exports = {
HtmlWebpackPluginConfigPalestras,
HtmlWebpackPluginConfigPodcasts,
new CopyWebpackPlugin([
{ from: path.join(__dirname, '.gitignore') },
{ from: path.join(__dirname, 'CNAME') },
{ from: path.join(__dirname, 'src/assets/js/particles.json') },
{ from: path.join(__dirname, 'src/assets/js/podcasts.json') },
Expand Down

0 comments on commit f65ad1c

Please sign in to comment.