GithubHelp home page GithubHelp logo

Comments (8)

fyllepo avatar fyllepo commented on June 16, 2024

After comparing the response, I get something odd.

Dev (just before ending </body>):
<div data-ga-events='Form: Event - Polarised local parallelism|Submission|Fail|'></div>

Production (cuts off everything after data-ga-events):
<div data-ga-events

Tracking from controller with:
GaEvents::Event.new('Form: Event - ' + @event.name, 'Submission', 'Fail')

from ga_events.

der-flo avatar der-flo commented on June 16, 2024

Can you provide a simple demo app showing the problem?

from ga_events.

sophiedeziel avatar sophiedeziel commented on June 16, 2024

I have the same issue, but on my dev environment.
It is actually worse than @fyllepo because it is stripped after <div data-ga-e. The tag not even complete...

My first guess would be it has something to do with the content-length in the response header...

from ga_events.

der-flo avatar der-flo commented on June 16, 2024

I just tested with a simple demo app with Rails 4.2.5 - it doesn't show this problem.

@sophiedeziel: Which app server are you using? Can you provide a simple demo app showing the problem?

from ga_events.

sophiedeziel avatar sophiedeziel commented on June 16, 2024

I can't give you a demo because it's a closed source app. I decided to implement my own solution using a flash to pass the event to the view and then fetching it with my own javascript.

We are using Puma

from ga_events.

der-flo avatar der-flo commented on June 16, 2024

I did a quick check with Puma, my test app doesn't produce this error.

It's quite difficult for us to spot this bug without a failing test app.

from ga_events.

sophiedeziel avatar sophiedeziel commented on June 16, 2024

I'll try to reproduce in a demo app if I have some time this week. I hope I can help soon.

from ga_events.

der-flo avatar der-flo commented on June 16, 2024

That would be awesome.

from ga_events.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.