Skip to content

Commit

Permalink
Update print link GA4 tracking
Browse files Browse the repository at this point in the history
- index parameter has changed to a different format and requires updating
  • Loading branch information
andysellick committed Mar 7, 2023
1 parent 55e8b52 commit c70b71a
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 12 deletions.
4 changes: 3 additions & 1 deletion app/views/content_items/detailed_guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 2,
section: 'Content',
},
Expand Down
8 changes: 6 additions & 2 deletions app/views/content_items/guide.html+print.erb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 2,
section: 'Content',
},
Expand Down Expand Up @@ -59,7 +61,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 2,
index: {
index_link: 2,
},
index_total: 2,
section: 'Footer',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/hmrc_manual.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Footer',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/hmrc_manual_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Footer',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/html_publication.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Content',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/manual.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Footer',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/manual_section.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Footer',
},
Expand Down
4 changes: 3 additions & 1 deletion app/views/content_items/manuals/_updates.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 1,
section: 'Footer',
},
Expand Down
8 changes: 6 additions & 2 deletions app/views/content_items/travel_advice.html+print.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 1,
index: {
index_link: 1,
},
index_total: 2,
section: 'Content',
},
Expand Down Expand Up @@ -59,7 +61,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 2,
index: {
index_link: 2,
},
index_total: 2,
section: 'Footer',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
ga4_event: {
event_name: 'print_page',
type: 'print page',
index: 2,
index: {
index_link: 2,
},
index_total: 2,
section: 'Footer',
},
Expand Down

0 comments on commit c70b71a

Please sign in to comment.