File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 20
20
21
21
<%= render 'govuk_publishing_components/components/print_link' , {
22
22
data_attributes : {
23
+ module : "ga4-event-tracker" ,
23
24
"track-category" : "printButton" ,
24
25
"track-action" : "clicked" ,
25
26
"track-label" : t ( "components.print_link.text" ) ,
26
- module : "print-link"
27
+ ga4 : {
28
+ event_name : 'print_page' ,
29
+ type : 'Print this page' ,
30
+ index : 1 ,
31
+ index_total : 2 ,
32
+ section : 'Contents' ,
33
+ } ,
27
34
} ,
28
35
margin_bottom : 8 ,
29
36
text : t ( "components.print_link.text" ) ,
45
52
46
53
<%= render 'govuk_publishing_components/components/print_link' , {
47
54
data_attributes : {
55
+ module : "ga4-event-tracker" ,
48
56
"track-category" : "printButton" ,
49
57
"track-action" : "clicked" ,
50
58
"track-label" : t ( "components.print_link.text" ) ,
51
- module : "print-link"
59
+ ga4 : {
60
+ event_name : 'print_page' ,
61
+ type : 'Print this page' ,
62
+ index : 2 ,
63
+ index_total : 2 ,
64
+ section : 'Footer' ,
65
+ } ,
52
66
} ,
53
67
text : t ( "components.print_link.text" )
54
68
} %>
You can’t perform that action at this time.
0 commit comments