Git Product home page Git Product logo

contao-marketing-suite's Introduction

Contao Marketing Suite

About

The package adds marketing functionalities to Contao. The Contao Marketing Suite enables dynamic playout of content to provide visitors with relevant information. Furthermore there is A/B testing, SEO support, text creation tools, custom tracking for links and forms. In addition, a button generator, a configurable cookie bar (already compliant with EU privacy) and many other marketing functions for professional marketing with Contao.

Insert Tags

Tag Description
{{cms_optinlink}} Creates a link that redisplays the cookie consent dialog so that the user can agree to the use of the necessary group. After consent, the browser window will automatically scroll to the original element.
{{ifoptin::*}} This tag is completely removed if the corresponding element was not approved. The parameter here is the ID of the tag (e.g. Google Analytics). This way, content in templates can be played depending on whether the user has agreed to the use of a certain tag. {{ifoptin::1}}<h1>Has agreed</h1>{{ifoptin}}
{{ifnoptin::*}} This tag will be removed completely if the corresponding element has been approved. The parameter here is the ID of the tag (e.g. Google Analytics). This way, content in templates can be played depending on whether the user has not agreed to the use of a particular tag. {{ifnoptin::1}}<h1>Did not agree</h1>{{ifnoptin}}

For Developers

Helper Functions for Cookie Consent

For Developers the Marketing Suite provides some helper functions in order to integrate the cookie consent handling into your own extensions.

These functions will check if the tag, given by its id, has been accepted by the visitor. The function also take care if the tag itself is actually set active or not.

<?php if( \numero2\MarketingSuite\Helper\Tag::isAccepted(6) ): ?>
    <!-- YOUR CONTENT IF ACCEPTED -->
<?php endif; ?>
<?php if( \numero2\MarketingSuite\Helper\Tag::isNotAccepted(6) ): ?>
       <!-- YOUR CONTENT IF NOT ACCEPTED -->
<?php endif; ?>

Header to disable tracking

Certain elements in the Marketing Suite can be tracked (like a click on a CTA or the view of an element). In case you want to prevent certain requests from actually tracking something the Suite provides a special HTTP header called X-CMS-DNT. If this header is present the tracking will be disabled for this request.

System requirements

Installation

contao-marketing-suite's People

Contributors

bennyborn avatar michb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

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.