GithubHelp home page GithubHelp logo

ga_events's People

Contributors

danielbayerlein avatar der-flo avatar hoffi avatar jhilden avatar lindagruenwald avatar nmax avatar svenwin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ga_events's Issues

Empty page is returned after redirect with ga_events on production

We ran into an issue where an empty response body (=> white page for the user) is returned after a controller action which creates an GAEvent (GaEvents::Event.new) and then redirects to another page.

It seems like this would be in issue in the ga_events middleware. The curious part is that this has worked without any issues in staging and is not reproducible outside the production environment.

Do you guys have any ideas what could cause this? Maybe some rack caching in production mode or so? We are running on rails 4.0.0. Any help would be appreciated.

Running into issues on production deployment (heroku)

It works completely fine in development, however on our live application there is no HTML injection at the bottom of the page. I'm tracking from the controller.

The JS is loading in fine, and I'm able to use GaEvents via the console.

Using ruby 2.1.2, rails 4.1.5 on both dev/prod servers.

Any ideas?

Events fire off twice on page refresh

My app is calling the Server side call in a model. Upon item creation in the model we fire the after_created callback to kick off the GA call. Once the item is created in the model we redirect the user to the same page but with a reference to the comment/reply they just left.

On page load the event fires off to GAU just fine. However if you refresh the page or click on a link to leave the page and go else where on the site the event that was just submitted is resubmitted to GAU.

Any suggestion how to get around this? In debugging the middleware.rb file on refresh the call if GaEvents::List.present? seems to fail so I'm not sure how its inserting the div again.

Feature request: CHANGELOG

A CHANGELOG.md would be nice with a least some superficial information what has changed between versions.

What happens if response is a redirect?

First I have to say that I really like the approach of your gem. It allows you to create events server-side where the actual business logic is happening, without the need of holding up the request to make HTTP request elsewhere and losing all the context information of the client.

However, I tried using the gem for a particular use case where the response of the request is a redirect and from what I see it doesn't work in that case. Or am I missing anything?

Is there maybe a possibility to keep the event information in that case and insert it into the next request? (Maybe the Rails flash could be used for that)

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.