File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5959 const anchorElement = document . createElement ( 'a' ) ;
6060 anchorElement . href = images [ index ] . link ;
6161 anchorElement . target = '_blank' ;
62+ anchorElement . addEventListener ( 'click' , ( ) => {
63+ gtag ( 'event' , 'click_article_ad' , {
64+ 'classId' : images [ index ] . id ,
65+ } ) ;
66+ } ) ;
6267
6368 const imgElement = document . createElement ( 'img' ) ;
6469 imgElement . src = images [ index ] . src ;
Original file line number Diff line number Diff line change 7373 const anchorElement = document . createElement ( 'a' ) ;
7474 anchorElement . href = images [ index ] . link ;
7575 anchorElement . target = '_blank' ;
76+ anchorElement . addEventListener ( 'click' , ( ) => {
77+ gtag ( 'event' , 'click_homepage_ad' , {
78+ 'classId' : images [ index ] . id ,
79+ } ) ;
80+ } ) ;
7681
7782 const imgElement = document . createElement ( 'img' ) ;
7883 imgElement . src = images [ index ] . src ;
You canβt perform that action at this time.
0 commit comments