Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tealiumiq
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
tealiumiq
Commits
6c7283c7
Commit
6c7283c7
authored
3 years ago
by
Daniel Schiavone
Browse files
Options
Downloads
Patches
Plain Diff
3171255 Correct typos in code
parent
73ae96e7
No related branches found
No related tags found
1 merge request
!8
3171255 Correct typos in code
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+16
-16
16 additions, 16 deletions
README.md
src/Service/Helper.php
+3
-3
3 additions, 3 deletions
src/Service/Helper.php
src/Service/Tealiumiq.php
+8
-8
8 additions, 8 deletions
src/Service/Tealiumiq.php
tealiumiq.services.yml
+1
-1
1 addition, 1 deletion
tealiumiq.services.yml
with
28 additions
and
28 deletions
README.md
+
16
−
16
View file @
6c7283c7
# 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/
This diff is collapsed.
Click to expand it.
src/Service/Helper.php
+
3
−
3
View file @
6c7283c7
...
...
@@ -428,7 +428,7 @@ class Helper {
* @return mixed|null
* Return Entity.
*/
public
function
getEnityFromRoute
()
{
public
function
getEn
t
ityFromRoute
()
{
$entity
=
$this
->
routeEntity
();
return
$entity
;
}
...
...
@@ -590,13 +590,13 @@ class Helper {
}
/**
* Return token
k
ised values for raw tags.
* Return tokenised values for raw tags.
*
* @param array $tealiumiqTags
* Raw tags.
*
* @return array
*
t
okenised tags.
*
T
okenised tags.
*/
public
function
tokenisedTags
(
array
$tealiumiqTags
)
{
$properties
=
[];
...
...
This diff is collapsed.
Click to expand it.
src/Service/Tealiumiq.php
+
8
−
8
View file @
6c7283c7
...
...
@@ -144,7 +144,7 @@ class Tealiumiq {
}
/**
* Get
A
ccount
V
alue.
* Get
a
ccount
v
alue.
*
* @return string
* Account value.
...
...
@@ -154,20 +154,20 @@ class Tealiumiq {
}
/**
* Get profile
V
alue.
* Get profile
v
alue.
*
* @return string
*
p
rofile value.
*
P
rofile value.
*/
public
function
getProfile
()
{
return
$this
->
profile
;
}
/**
* Get environment
V
alue.
* Get environment
v
alue.
*
* @return string
*
e
nvironment value.
*
E
nvironment value.
*/
public
function
getEnvironment
()
{
return
$this
->
environment
;
...
...
@@ -306,7 +306,7 @@ class Tealiumiq {
$newProperties
=
array_merge
(
$defaultValues
,
$newProperties
);
}
// Allow other modules to propert
y variabl
es before we send it.
// Allow other modules to
alter
propert
i
es 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
->
getEn
t
ityFromRoute
();
}
$tealiumiqTagsTokenised
=
[];
...
...
This diff is collapsed.
Click to expand it.
tealiumiq.services.yml
+
1
−
1
View file @
6c7283c7
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment