Giter VIP home page Giter VIP logo

syliusanalyticsplugin's Issues

Checkout steps

Hi,

Thanks for the great Plugin, it worked immediately.
One thing, that I am missing is a guide how to add the checkout steps to google analytics.

'ec:setAction','checkout', {
    'step': 1,
    'option': 'xxx'

Naming consistency

Some places you have used Analytics, some places Analytic. Use Analytics.

Tracking id for each channel

It should be possible to add a tracking id for each channel.

In my opinion the GoogleAnalyticConfig.orm.xml should have a channel field and the trackingId field should not be nullable. You should then validate that a channel can only have one tracking id which means the ORM config should have a unique constraint like (channel, trackingId).

If it's done this way it would also be easier to add multiple tracking ids in the future for a channel if a customer wants that.

Subscribers instead of listeners

I really like subscribers in the sense that all you need to know is in the same class. With listeners you have to check the service definition together with the listener. Especially with some many listeners in this plugin it's tedious :)

What do you think?

[Bug]: GA events are not triggered

Plugin version

v1.0.0-alpha.6 # "reference": "b935843102724489cd92224a5a0657648cfa23e6"

Sylius version

"version": "v1.11.15", "reference": "61494235eddb173c032eb5548d69fd1035b289c9"

What happened?

Hi , I've installed this plugin , configured well based on docs , migration script was executed , routes path etc & created new property under GA configured GA ID along with API secret in admin panel . BUT it just trigger only page view & checkout begin triggers & following triggers are missing .

  • add_shipping_info
  • add_to_cart
  • begin_checkout
  • purchase
  • view_cart
  • view_item_list
  • view_item

this is how my setono_sylius_analytics.yaml looks like .
setono_google_analytics:
gtag: ~
# If you want to use tag manager instead of gtag, just comment the line above and remove the comment below
# tag_manager:

can any one help me if I'm missing missing ?
thanks in advance

Relevant log output

No response

You have requested a non-existent parameter "setono_sylius_analytics.model.property.class"

Installed

composer require setono/sylius-analytics-plugin

Config

<?php
# config/bundle.php
return [
    ...
    Setono\TagBagBundle\SetonoTagBagBundle::class => ['all' => true],
    Setono\SyliusAnalyticsPlugin\SetonoSyliusAnalyticsPlugin::class => ['all' => true],
    Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
];
# config/routes/setono_sylius_analytics.yaml
setono_sylius_analytics:
    resource: "@SetonoSyliusAnalyticsPlugin/Resources/config/routing.yaml"
# config/packages/_sylius.yaml
imports:
   ...
    - { resource: "@SetonoSyliusAnalyticsPlugin/Resources/config/app/config.yaml" }

Symptom

When I execute php bin/console doctrine:migrations:diff I get the following error:

$ php bin/console doctrine:migrations:diff

In ParameterBag.php line 100:
                                                                                               
  You have requested a non-existent parameter "setono_sylius_analytics.model.property.class".  

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.