Wed Mar 13 2019
Copied to clipboard! Copy reply
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
      if (window.location.href.match(/\.com\/$/i) != null) {
          // home page
          demo_type = 'demo_video';
          newsletter_type = 'homepage'
          form_url = 'rosettastone.com'
          if (window.location.href.match(/espanol/i)) {
            // espanol home page
            demo_type = 'demo_video';
            newsletter_type = 'homepage'
            form_url = 'espanol.rosettastone.com'
          }
        }
        if (window.location.href.match(/learn-*/i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'learn_page'
          form_url = 'learn pages'
        }
        if (window.location.href.match(/speak-*/i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'speak_page'
          form_url = 'speak pages'
        }
        if (window.location.href.match(/buy-*/i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'learn_page'
          form_url = 'buy pages'
        }
        if (window.location.href.match(/opdemo2/i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'demo_page'
          form_url = '/lp/opdemo2'
        }
        if (window.location.href.match(/\/demo\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'demo_page'
          form_url = '/demo'
        }
        if (window.location.href.match(/\/freetrial\//i) != null) {
          demo_type = 'freetrial';
          newsletter_type = 'trial_page'
          form_url = '/freetrial'
        }
        if (window.location.href.match(/\/reviews\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'reviews'
          form_url = '/reviews'
        }
        if (window.location.href.match(/\/testimonials\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'testimonials'
          form_url = '/testimonials'
        }
        if (window.location.href.match(/\/opdemo-es\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'demo_page'
          form_url = '/lp/opdemo-es'
        }
        if (window.location.href.match(/\/aprende-*\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'learn_page'
          form_url = 'aprende pages'
        }
        if (window.location.href.match(/\/homeschool\/reviews\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'homeschool_reviews'
          form_url = '/homeschool/reviews'
        }
        if (window.location.href.match(/\/homeschool\/demo\//i) != null) {
          demo_type = 'demo_video';
          newsletter_type = 'homeschool_demo'
          form_url = '/homeschool/demo'
        }