diff options
| author | horus | 2018-02-14 21:42:30 +0100 |
|---|---|---|
| committer | horus | 2018-02-14 21:42:30 +0100 |
| commit | 073d96e40f2f198e0a3d3fcf18be87c330b667ea (patch) | |
| tree | 5b8b5a9d431a2afe17ffc2844e983c119d20526a /site/resources | |
| parent | b86800372f2c923827af22235114b95c7478adf4 (diff) | |
| download | alkobote-073d96e40f2f198e0a3d3fcf18be87c330b667ea.tar.gz | |
Adds campaign and event tracking. (website)
Diffstat (limited to 'site/resources')
| -rw-r--r-- | site/resources/views/snippets/footer.blade.php | 10 | ||||
| -rw-r--r-- | site/resources/views/snippets/navbar.blade.php | 14 | ||||
| -rw-r--r-- | site/resources/views/snippets/sortbuttons.blade.php | 22 |
3 files changed, 23 insertions, 23 deletions
diff --git a/site/resources/views/snippets/footer.blade.php b/site/resources/views/snippets/footer.blade.php index 096adc1..d0be0e7 100644 --- a/site/resources/views/snippets/footer.blade.php +++ b/site/resources/views/snippets/footer.blade.php @@ -8,16 +8,16 @@ <ul class="list-group"> <li class="list-group-item footer-link"> - <a href="/feeds/" title="Übersicht über die RSS-Feeds">RSS-Feeds</a> + <a href="/feeds/?pk_campaign=Angebote&pk_kwd=RSS-Feeds&pk_source=Footer-Link" title="Übersicht über die RSS-Feeds">RSS-Feeds</a> </li> <li class="list-group-item footer-link"> - <a href="https://www.fuselkoenig.de/" title="Der Blog auf www.fuselkoenig.de">Blog | Fuselkönig.de</a> + <a href="https://www.fuselkoenig.de/?pk_campaign=Angebote&pk_kwd=Blog&pk_source=Footer-Link" title="Der Blog auf www.fuselkoenig.de">Blog | Fuselkönig.de</a> </li> <li class="list-group-item footer-link"> - <a href="https://www.fuselkoenig.de/impressum" rel="nofollow" title="Impressum">Impressum</a> + <a href="https://www.fuselkoenig.de/impressum/?pk_campaign=Angebote&pk_kwd=Impressum&pk_source=Footer-Link" rel="nofollow" title="Impressum">Impressum</a> </li> <li class="list-group-item footer-link"> - <a href="https://www.fuselkoenig.de/kontakt" title="Link zum Kontaktformular">Kontakt</a> + <a href="https://www.fuselkoenig.de/kontakt/?pk_campaign=Angebote&pk_kwd=Kontakt&pk_source=Footer-Link" title="Link zum Kontaktformular">Kontakt</a> </li> </div> </div> @@ -26,7 +26,7 @@ <h4>Über</h4> <p class="ttext-muted mb-0"> <img class="float-right" src="https://www.maximilianmoehring.com/wp-content/uploads/sites/12/2017/12/180x180xPortrait_klein4.png.pagespeed.ic.qidt2UvDcW.png"> - Hallo, ich bin der Autor von <a href="https://www.fuselkoenig.de">Fuselkönig.de</a>. Auf dieser Seite sammle ich Sonderangebote im Bereich Spirituosen. Wenn Sie mehr erfahren wollen, besuchen Sie mich doch auf meinem <a href="https://www.fuselkoenig.de">Blog</a>. + Hallo, ich bin der Autor von <a href="https://www.fuselkoenig.de/?pk_campaign=Angebote&pk_kwd=Fuselkönig.de&pk_source=Footer-About">Fuselkönig.de</a>. Auf dieser Seite sammle ich Sonderangebote im Bereich Spirituosen. Wenn Sie mehr erfahren wollen, besuchen Sie mich doch auf meinem <a href="https://www.fuselkoenig.de/?pk_campaign=Angebote&pk_kwd=Blog&pk_source=Footer-About">Blog</a>. </p> <!-- <img src="https://www.maximilianmoehring.com/wp-content/uploads/sites/12/2017/12/180x180xPortrait_klein4.png.pagespeed.ic.qidt2UvDcW.png"> diff --git a/site/resources/views/snippets/navbar.blade.php b/site/resources/views/snippets/navbar.blade.php index 722836e..2877830 100644 --- a/site/resources/views/snippets/navbar.blade.php +++ b/site/resources/views/snippets/navbar.blade.php @@ -1,29 +1,29 @@ <header> <!-- Fixed navbar --> <nav class="navbar navbar-expand-md navbar-dark ffixed-top bg-primary nnavbar-light"> - <a class="navbar-brand" href="/">Angebote <br><small class="float-right font-italic navbar-small">auf Fuselkönig.de</small></a> + <a class="navbar-brand" href="/" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Navbar-Brand']);">Angebote <br><small class="float-right font-italic navbar-small">auf Fuselkönig.de</small></a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarCollapse"> <ul class="navbar-nav mr-auto"> <li class="nav-item {{ Request::is('/') ? 'active' : '' }}"> - <a class="nav-link" href="/">Übersicht{!! Request::is('/') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Übersicht']);">Übersicht{!! Request::is('/') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> <li class="nav-item {{ Request::is('whisky') ? 'active' : '' }}"> - <a class="nav-link" href="/whisky">Whisky{!! Request::is('whisky') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/whisky" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Whisky']);">Whisky{!! Request::is('whisky') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> <li class="nav-item {{ Request::is('wodka') ? 'active' : '' }}"> - <a class="nav-link" href="/wodka">Wodka{!! Request::is('wodka') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/wodka" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Wodka']);">Wodka{!! Request::is('wodka') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> <li class="nav-item {{ Request::is('gin') ? 'active' : '' }}"> - <a class="nav-link" href="/gin">Gin{!! Request::is('gin') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/gin" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Gin']);">Gin{!! Request::is('gin') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> <li class="nav-item {{ Request::is('rum') ? 'active' : '' }}"> - <a class="nav-link" href="/rum">Rum{!! Request::is('rum') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/rum" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Rum']);">Rum{!! Request::is('rum') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> <li class="nav-item {{ Request::is('misc') ? 'active' : '' }}"> - <a class="nav-link" href="/misc">Verschiedenes {!! Request::is('misc') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> + <a class="nav-link" href="/misc" onclick="javascript:_paq.push(['trackEvent', 'Navbar', 'Verschiedenes']);">Verschiedenes {!! Request::is('misc') ? ' <span class="sr-only">(current)</span>' : ''!!}</a> </li> </ul> <!-- diff --git a/site/resources/views/snippets/sortbuttons.blade.php b/site/resources/views/snippets/sortbuttons.blade.php index 9343273..b115bbd 100644 --- a/site/resources/views/snippets/sortbuttons.blade.php +++ b/site/resources/views/snippets/sortbuttons.blade.php @@ -8,8 +8,8 @@ Preis </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> - <a class="dropdown-item" href="?sort=price&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Niedrigster Preis</a> - <a class="dropdown-item" href="?sort=price&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Höchster Preis</a> + <a class="dropdown-item" href="?sort=price&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Preis', 'Niedrigster Preis']);">Niedrigster Preis</a> + <a class="dropdown-item" href="?sort=price&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Preis', 'Höchster Preis']);">Höchster Preis</a> </div> </div> <div class="dropdown mr-2"> @@ -17,8 +17,8 @@ Name </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> - <a class="dropdown-item" href="?sort=name&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Alphabetisch</a> - <a class="dropdown-item" href="?sort=name&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Umgekehrt</a> + <a class="dropdown-item" href="?sort=name&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Name', 'Alphabetisch']);">Alphabetisch</a> + <a class="dropdown-item" href="?sort=name&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Name', 'Umgekehrt']);">Umgekehrt</a> </div> </div> <div class="dropdown mr-2"> @@ -26,8 +26,8 @@ Shop </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> - <a class="dropdown-item" href="?sort=shop&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Alphabetisch</a> - <a class="dropdown-item" href="?sort=shop&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Umgekehrt</a> + <a class="dropdown-item" href="?sort=shop&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Shop', 'Alphabetisch']);">Alphabetisch</a> + <a class="dropdown-item" href="?sort=shop&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Shop', 'Umgekehrt']);">Umgekehrt</a> </div> </div> </div> @@ -37,8 +37,8 @@ Preisnachlass </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> - <a class="dropdown-item" href="?sort=procent&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Niedrigster Preisnachlass</a> - <a class="dropdown-item" href="?sort=procent&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Höchster Preisnachlass</a> + <a class="dropdown-item" href="?sort=procent&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Preisnachlass', 'Niedrigster Preisnachlass']);">Niedrigster Preisnachlass</a> + <a class="dropdown-item" href="?sort=procent&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Preisnachlass', 'Höchster Preisnachlass']);">Höchster Preisnachlass</a> </div> </div> <div class="dropdown"> @@ -46,13 +46,13 @@ Aktualität </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> - <a class="dropdown-item" href="?sort=time&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Neueste zuerst</a> - <a class="dropdown-item" href="?sort=time&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}">Älteste zuerst</a> + <a class="dropdown-item" href="?sort=time&order=desc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Aktualität', 'Neueste zuerst']);">Neueste zuerst</a> + <a class="dropdown-item" href="?sort=time&order=asc{!! Request::is('search') ? '&q=' : '' !!}{{ Request::is('search') ? $search_phrase : '' }}" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'Aktualität', 'Älteste zuerst']);">Älteste zuerst</a> </div> </div> </div> <div class="btn-group " role="group" aria-label="Sortieren" style="justify-content: flex-end;"> - <a class="btn btn-rss text-white" href={{ secure_url($rss_feed) }} title="Link zum RSS-Feed"> + <a class="btn btn-rss text-white" href={{ secure_url($rss_feed) }} title="Link zum RSS-Feed" onclick="javascript:_paq.push(['trackEvent', 'Sort-Button', 'RSS-Feed']);"> <span class="oi oi-rss-alt" title="RSS-Feed" aria-hidden="true"></span> </a> </div> |
