File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,12 @@ module.exports = {
2727 stylesheets : [
2828 'https://fonts.googleapis.com/css?family=Material+Icons' ,
2929 ] ,
30+ scripts : [
31+ {
32+ src : '/algolia-conversion.js' ,
33+ async : true ,
34+ } ,
35+ ] ,
3036 future : {
3137 v4 : true ,
3238 experimental_faster : true ,
Original file line number Diff line number Diff line change 1+ document . addEventListener ( 'DOMContentLoaded' , function ( ) {
2+ const trialBtn = document . querySelector ( 'a.header-trial[href*="sumologic.com/sign-up"]' ) ;
3+ if ( typeof aa === 'function' && trialBtn ) {
4+ trialBtn . addEventListener ( 'click' , function ( ) {
5+ // Google Analytics event
6+ gtag ( 'event' , 'free_trial_click' ) ;
7+
8+ // Algolia conversion event
9+ aa ( 'convertedObjectIDs' , {
10+ index : 'crawler_sumodocs' ,
11+ eventName : 'free_trial_click' ,
12+ objectIDs : [ 'start-free-trial' ] ,
13+ } ) ;
14+ } ) ;
15+ }
16+ } ) ;
You can’t perform that action at this time.
0 commit comments