Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
fc2b4cd3
Commit
fc2b4cd3
authored
Feb 01, 2022
by
Tyler Williams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Format pricing, revenue, tax data as strings for GTM
parent
b2b00313
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
app/assets/javascripts/google_tag_manager/index.js
app/assets/javascripts/google_tag_manager/index.js
+4
-4
spec/frontend/google_tag_manager/index_spec.js
spec/frontend/google_tag_manager/index_spec.js
+6
-6
No files found.
app/assets/javascripts/google_tag_manager/index.js
View file @
fc2b4cd3
...
...
@@ -8,14 +8,14 @@ const PRODUCT_INFO = {
// eslint-disable-next-line @gitlab/require-i18n-strings
name
:
'
Premium
'
,
id
:
'
0002
'
,
price
:
228
,
price
:
'
228
'
,
variant
:
'
SaaS
'
,
},
[
SKU_ULTIMATE
]:
{
// eslint-disable-next-line @gitlab/require-i18n-strings
name
:
'
Ultimate
'
,
id
:
'
0001
'
,
price
:
1188
,
price
:
'
1188
'
,
variant
:
'
SaaS
'
,
},
};
...
...
@@ -220,8 +220,8 @@ export const trackTransaction = (transactionDetails) => {
id
:
transactionId
,
affiliation
:
'
GitLab
'
,
option
:
paymentOption
,
revenue
,
tax
,
revenue
:
revenue
.
toString
()
,
tax
:
tax
.
toString
()
,
},
products
:
[
product
],
},
...
...
spec/frontend/google_tag_manager/index_spec.js
View file @
fc2b4cd3
...
...
@@ -234,7 +234,7 @@ describe('~/google_tag_manager/index', () => {
category
:
'
DevOps
'
,
id
:
'
0002
'
,
name
:
'
Premium
'
,
price
:
228
,
price
:
'
228
'
,
quantity
:
1
,
variant
:
'
SaaS
'
,
},
...
...
@@ -264,7 +264,7 @@ describe('~/google_tag_manager/index', () => {
category
:
'
DevOps
'
,
id
:
'
0001
'
,
name
:
'
Ultimate
'
,
price
:
1188
,
price
:
'
1188
'
,
quantity
:
1
,
variant
:
'
SaaS
'
,
},
...
...
@@ -301,7 +301,7 @@ describe('~/google_tag_manager/index', () => {
category
:
'
DevOps
'
,
id
:
'
0001
'
,
name
:
'
Ultimate
'
,
price
:
1188
,
price
:
'
1188
'
,
quantity
:
5
,
variant
:
'
SaaS
'
,
},
...
...
@@ -354,8 +354,8 @@ describe('~/google_tag_manager/index', () => {
id
:
'
123
'
,
affiliation
:
'
GitLab
'
,
option
:
'
visa
'
,
revenue
,
tax
:
10
,
revenue
:
revenue
.
toString
()
,
tax
:
'
10
'
,
},
products
:
[
{
...
...
@@ -363,7 +363,7 @@ describe('~/google_tag_manager/index', () => {
category
:
'
DevOps
'
,
id
,
name
,
price
:
revenue
,
price
:
revenue
.
toString
()
,
quantity
:
1
,
variant
:
'
SaaS
'
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment