Skip to content
Snippets Groups Projects
Commit 6c7283c7 authored by Daniel Schiavone's avatar Daniel Schiavone
Browse files

3171255 Correct typos in code

parent 73ae96e7
No related branches found
No related tags found
1 merge request!83171255 Correct typos in code
# Tealium iQ Tag Management
[![CircleCI](https://circleci.com/gh/dakkusingh/tealiumiq.svg?style=svg)](https://circleci.com/gh/dakkusingh/tealiumiq)
The Tealium iQ tag management system puts you in control of
your marketing technology implementations making it easy to
deploy new vendor tags and make edits to existing ones in our
The Tealium iQ tag management system puts you in control of
your marketing technology implementations making it easy to
deploy new vendor tags and make edits to existing ones in our
user friendly console.
This module provides Drupal 8 integration with Tealium iQ.
......@@ -21,15 +21,15 @@ The primary features include:
- An administration interface to manage default Tealium tags. - TODO
- Use of standard fields for entity support, allowing for translation
and revisioning of Tealium tag values added for individual entities.
- Basic of Tealium tags available, covering commonly used tags
- Basic Tealium tags available, covering commonly used tags
- A plugin interface allowing for additional Tealium tags to be easily
added via custom modules.
- Tokens may be used to automatically assign values.
## Usage scenario - Tealium Tags Field
## Usage scenario - Tealium Tags Field
### Install the module.
- Open admin/config/services/tealiumiq.
- Add the Tealium iQ account details.
- Add the Tealium iQ account details.
### Add Tealium Tags Field
- To adjust Tealium Tags for a specific entity, the Tealium field must
......@@ -43,7 +43,7 @@ The primary features include:
- If the site supports multiple languages, and translations have been
enabled for this entity, select "Users may translate this field" to
use Drupal's translation system.
## Usage Schenario - As API
todo - write documentation
......@@ -55,21 +55,21 @@ This setting can be changed at:
`admin/config/services/tealiumiq`
### Asynchronous Loading
With asynchronous tracking, the browser can load the different
tags in parallel. It no longer has to wait for a certain tag to
load completely before moving on to the next or the rest of the page
With asynchronous tracking, the browser can load the different
tags in parallel. It no longer has to wait for a certain tag to
load completely before moving on to the next or the rest of the page
content.
![tealium_async](https://tealium.com/wp-content/uploads/2015/03/oct-11-asynchronous-tags.gif)
### Synchronous Loading
When a page loads a synchronous tag, it waits for the tag content to
load before moving on to the next content. The figure below shows an
example of a page loading 4 tags in a synchronous or serial manner.
The page starts by loading the first tag. After the tag has been
When a page loads a synchronous tag, it waits for the tag content to
load before moving on to the next content. The figure below shows an
example of a page loading 4 tags in a synchronous or serial manner.
The page starts by loading the first tag. After the tag has been
completely loaded, the page moves on the second tag.
![tealium_iq](https://tealium.com/wp-content/uploads/2015/03/oct-11-synchronous-tags.gif)
### Official documentation:
### Official documentation:
https://tealium.com/blog/standard/asynchronous-tagging/
......@@ -428,7 +428,7 @@ class Helper {
* @return mixed|null
* Return Entity.
*/
public function getEnityFromRoute() {
public function getEntityFromRoute() {
$entity = $this->routeEntity();
return $entity;
}
......@@ -590,13 +590,13 @@ class Helper {
}
/**
* Return tokenkised values for raw tags.
* Return tokenised values for raw tags.
*
* @param array $tealiumiqTags
* Raw tags.
*
* @return array
* tokenised tags.
* Tokenised tags.
*/
public function tokenisedTags(array $tealiumiqTags) {
$properties = [];
......
......@@ -144,7 +144,7 @@ class Tealiumiq {
}
/**
* Get Account Value.
* Get account value.
*
* @return string
* Account value.
......@@ -154,20 +154,20 @@ class Tealiumiq {
}
/**
* Get profile Value.
* Get profile value.
*
* @return string
* profile value.
* Profile value.
*/
public function getProfile() {
return $this->profile;
}
/**
* Get environment Value.
* Get environment value.
*
* @return string
* environment value.
* Environment value.
*/
public function getEnvironment() {
return $this->environment;
......@@ -306,7 +306,7 @@ class Tealiumiq {
$newProperties = array_merge($defaultValues, $newProperties);
}
// Allow other modules to property variables before we send it.
// Allow other modules to alter properties before we send it.
$alterUDOPropertiesEvent = new AlterUdoPropertiesEvent(
$this->udo->getNamespace(),
$newProperties
......@@ -324,14 +324,14 @@ class Tealiumiq {
$tealiumiqTags = array_merge($tealiumiqTags, $properties);
}
// Dont proceed if there are no tags.
// Don't proceed if there are no tags.
if (empty($tealiumiqTags)) {
return;
}
// Process tokens.
if (!$entity) {
$entity = $this->helper->getEnityFromRoute();
$entity = $this->helper->getEntityFromRoute();
}
$tealiumiqTagsTokenised = [];
......
......@@ -8,7 +8,7 @@ services:
tealiumiq.tealiumiq:
class: Drupal\tealiumiq\Service\Tealiumiq
arguments: ["@config.factory", '@tealiumiq.udo', '@tealiumiq.token', '@plugin.manager.tealiumiq.group', '@plugin.manager.tealiumiq.tag', '@request_stack', '@language_manager', '@logger.factory', '@tealiumiq.helper', "@event_dispatcher"]
arguments: ['@config.factory', '@tealiumiq.udo', '@tealiumiq.token', '@plugin.manager.tealiumiq.group', '@plugin.manager.tealiumiq.tag', '@request_stack', '@language_manager', '@logger.factory', '@tealiumiq.helper', '@event_dispatcher']
plugin.manager.tealiumiq.tag:
class: Drupal\tealiumiq\Service\TagPluginManager
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment