Code Monkey home page Code Monkey logo

Comments (3)

philipwalton avatar philipwalton commented on June 2, 2024

Can you please clarify what you're asking for? If you want autotrack to be included in the polymer starter kit, it's probably best to open an issue on that repo.

from autotrack.

OrenBochman avatar OrenBochman commented on June 2, 2024

I think this is more about wrapping app the project as a polymer web component.
Unfortunately, it is not a trivial task:

  1. Create a web component e.g. "auto-track"
  2. Formailize a mechanism to configure each of the plugins - "auto-track"
  3. A standard way for other polymer components to talk with auto-track i.e. what event should go off when.
  4. Create additional elements and a plugin for auto-tracking of enhanced e-commerce events
  5. Add it all to the Starter Kit.

from autotrack.

philipwalton avatar philipwalton commented on June 2, 2024

I don't think an <auto-track> element would work in isolation because many of the autotrack plugins need to be required prior to the first pageview being sent or the pageview won't contain the right data. To put that another way, if a developer is currently using the default tracking snippet, there's no away a custom element could properly insert itself between the tracker's creation and the sending of the first pageview.

Perhaps a more general analytics tracking element could take care of this (loading the script, creating the tracker, requiring autotrack, etc), but that would be a separate project.

If you'd like to see something like that, I'd suggest opening an issue on the Polymer Starter Kit repo.

from autotrack.

Related Issues (20)

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.