Skip to content

Commit

Permalink
ajout configuration GA
Browse files Browse the repository at this point in the history
  • Loading branch information
agallou committed Mar 9, 2019
1 parent 4ba7a53 commit b94560c
Show file tree
Hide file tree
Showing 9 changed files with 4,963 additions and 0 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ description: >- # this means to ignore newlines until "baseurl:"
twitter_username: AFUP_Lyon
meetup_url: "https://www.meetup.com/fr-FR/afup-lyon-php/"

ga_ua: "UA-33922307-6"

subheader:
- label: Appel à speakers
Expand Down
1 change: 1 addition & 0 deletions _config_dev.yml-dist
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
url: ""
ga_ua: ""
2 changes: 2 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@
<meta name="twitter:image" content="{{ site.baseurl | prepend: site.url }}{{ site.images }}/bg.svg">
{% endif %}

{% include js_head.html %}

</head>
28 changes: 28 additions & 0 deletions _includes/js_head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{% if site.ga_ua %}
<script type="text/javascript" src="/js/tarteaucitron.js"></script>
<script type="text/javascript">
tarteaucitronForceLanguage = 'fr';
tarteaucitron.init({
"privacyUrl": "", /* Privacy policy url */

"hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
"cookieName": "tarteaucitron", /* Cookie name */

"orientation": "bottom", /* Banner position (top - bottom) */
"showAlertSmall": false, /* Show the small banner on bottom right */
"cookieslist": true, /* Show the cookie list */

"adblocker": false, /* Show a Warning if an adblocker is detected */
"AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
"highPrivacy": false, /* Disable auto consent */
"handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */

"removeCredit": true, /* Remove credit link */
"moreInfoLink": true, /* Show more info link */
"useExternalCss": true /* If false, the tarteaucitron.css file will be loaded */
});
tarteaucitron.user.analyticsUa = '';
tarteaucitron.user.analyticsUaCreate = {'siteSpeedSampleRate': 100};
(tarteaucitron.job = tarteaucitron.job || []).push('analytics');
</script>
{% endif %}
1 change: 1 addition & 0 deletions _sass/_main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
@import "ui/prev-next";
@import "ui/call-to-action";
@import "ui/publication-date";
@import "ui/tarteaucitron";
@import "ui/widgets/big-button";
@import "ui/widgets/meetup";
@import "ui/widgets/speakerdeck";
Expand Down
Loading

0 comments on commit b94560c

Please sign in to comment.