Refactor undefined check for mainjs, add a challengeName to email signup page
parent
8acf44ed86
commit
2cc469e293
|
@ -1,5 +1,5 @@
|
|||
$(document).ready(function() {
|
||||
challengeName = challengeName || 'Untitled';
|
||||
challengeName = typeof challengeName !== undefined ? challengeName : 'Untitled';
|
||||
if (challengeName) {
|
||||
ga('send', 'event', 'Challenge', 'load', challengeName);
|
||||
}
|
||||
|
|
|
@ -66,3 +66,5 @@ block content
|
|||
br
|
||||
br
|
||||
br
|
||||
script.
|
||||
var challengeName = 'Email Signup'
|
||||
|
|
Loading…
Reference in New Issue