https://github.com/numero2/contao-marketing-suite
Marketing functions for professional marketing with Contao.
https://github.com/numero2/contao-marketing-suite
ab-testing contao cookie-consent leads marketing
Last synced: 5 months ago
JSON representation
Marketing functions for professional marketing with Contao.
- Host: GitHub
- URL: https://github.com/numero2/contao-marketing-suite
- Owner: numero2
- Created: 2018-12-05T09:17:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-11-29T12:46:47.000Z (5 months ago)
- Last Synced: 2024-11-29T13:41:36.808Z (5 months ago)
- Topics: ab-testing, contao, cookie-consent, leads, marketing
- Language: PHP
- Homepage: https://contao-marketingsuite.com
- Size: 1.16 MB
- Stars: 9
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Contao Marketing Suite
=======================[](https://packagist.org/packages/numero2/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}}Has agreed
{{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}}Did not agree
{{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.
For example in a `html5` template you can use it like this:
```php
```
We also provide a twig function to be used inside `twig` templates like this:
```twig
{% if cms_tag_accepted(6) %}
{% endif %}
{% if cms_tag_not_accepted(6) %}
{% 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
--* [Contao 5.3](https://github.com/contao/contao) (or newer)
* [Contao 4.x](https://github.com/contao/contao) is only supported up to Marketing Suite version [2.1.5](https://github.com/numero2/contao-marketing-suite/releases/tag/2.1.5)Installation
--* See [contao-marketingsuite.com](https://contao-marketingsuite.com) for details.