Andreas Larsen
Andreas Larsen

Reputation: 1

Is there a way to insert JQuery/Javascript in Google Optimize?

I am adding jQuery to my website with Google Optimize. And I get this error in the console:

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('') does not match the recipient window's origin ('')

Is there a way to get around this?

This is my jQuery:

$('#ab_target').click(function(){
  window.localStorage.setItem('frequency','5')
})

Upvotes: 0

Views: 1614

Answers (0)

Related Questions