Last active
June 20, 2020 04:55
-
-
Save swsalim/5583b5e3e065b3ffe2e81cc719a1306b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEFORE: | |
<input type="submit" value="Send Message" class="wpcf7-form-control wpcf7-submit btn btn-accent"> | |
AFTER: | |
<!-- Google Analytics --> | |
<input type="submit" value="Send Message" class="wpcf7-form-control wpcf7-submit btn btn-accent" onclick="ga('send', 'event', 'Form', 'Click', 'Contact Us Form', '0');"> | |
<!-- Or --> | |
<!-- Global site tag (gtag.js) - Google Analytics --> | |
<input type="submit" value="Send Message" class="wpcf7-form-control wpcf7-submit btn btn-accent" onclick="gtag('event', 'Click', { 'event_category' : 'Form', 'event_label' : 'Contact Us Form', 'value': '0' });"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment