evankyle/react-twitter-conversion-tracker

MIME type ('text/html') is not executable

willwright82 opened this issue · 2 comments

Hi Evan — thanks for adding this component!

I'm having an issue with it on Chrome (seems to be "only" Chrome — where I need it to work the most) as it doesn't fire.

My implementation code is along those lines:

import React, { Component } from 'react'
import TwitterConvTrkr from 'react-twitter-conversion-tracker'

class SignupConfirmation extends Component {
  componentDidMount() {

    TwitterConvTrkr.init('ny5g9');
    TwitterConvTrkr.pageView();

  }
  render() {
    return (
        [... Code ...]
    )
  }
}

And the Dev Tools console error message is:

Refused to execute script from 'https://analytics.twitter.com/i/adsct?p_id=Twitter&p_user_id=0&txn_id=ny5g5&events=%5B%5B%22pageview%22%2Cnull%5D%5D&tw_sale_amount=0&tw_order_quantity=0&tw_iframe_status=0&tpx_cb=twttr.conversion.loadPixels' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Any ideas?

Thanks!

@willwright82 did you ever figure this out?

Did you find out any solution?