Git Product home page Git Product logo

wea-tracker's Introduction

OXID Tracker by WEA IT-Solutions

WEA IT-Solutions OXID Tracker

This is an oxid 6 module implementing econda tracking (emos3) and google tracking.

Module settings and possibilities

Using the backend you can configure some settings.

  • GDPR settings to Opt-in or Opt-out for econda tracking.
  • Use your own name for the emos javascript library file.
  • Use either "oxarticles.oxid" or "oxarticles.oxartnum" to track the product number.
  • Econda extended order tracking using econda's data model template.
  • Google Analytics enhanced ecommerce tracking for orders and product views.

Module installation via composer

In order to install this module using composer run the following command in your shop base directory where the shop's composer.json is placed.

composer require wea/wea-tracker

Setup

emos3 lib

Place your emos3.js library provided by econda into "out/js/emos3.js"

Flow theme templates

Using flow theme structure the following smarty "block"

[{block name="wea_tracker"}][{/block}]

has to/can be placed e.g. in the following templates of your theme (if your theme is using the flow theme structure):

  • page/checkout/basket.tpl
  • page/checkout/order.tpl
  • page/checkout/thankyou.tpl
  • page/account/user.tpl
  • ...
  • ..

For the full list see metadata.

P.S.: Do not forget to add yor extended templates to the 'onDeactivate' function to reset template cache.

Non standard theme structure

If your theme has a different template structure you have to extend the metadata for your needs.

Tracking options

This module supports three tracking mehtods:

  • Track always all users.
  • Track users with their permission only (opt-in).
  • Track all users until they opt-out from tracking.

To use the opt-in or opt-out tracking method you have to change the module settings using the oxid backend.

  • The opt-in tracking is looking for the "wea_tracking_optin=1" cookie, if this cookie is missing no tracking will be performed.
  • The opt-out tracking is looking for the "wea_tracking_optout=1" cookie, if this cookie is set no tracking will be performed.

These cookies can be set up using e.g. javascript (hint: cookie permission layer).

wea-tracker's People

Contributors

kavatari avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

oxidprojects

wea-tracker's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.