Git Product home page Git Product logo

google_tag's People

Contributors

calebdelnayatgfs avatar jjcarrion avatar jmolivas avatar mikeyp avatar solotandem avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

google_tag's Issues

Service name typo

Actual value
google_tag.response_subscriver:
Must read as:
google_tag.response_subscriber:

private methods makes it diffecult to extend GoogleTagResponseSubscriber

I am working on a site which handles multiple container_id's depending on parameters in the url.

In this case I decided to try and extend GoogleTagResponseSubscriber and overwrite the public addTag method, but I could not call $this->tagApplies($request, $response) from within it because of its visibility being private.

But what I was really trying to do was to overload the container_id config variable (no we do not want to use the domain module just for this one little edge case).

So I suggest 2 things

  1. Make private methods protected instead
  2. Separate out the fetching of the container_id to it's own method.

google_tag.settings.yml fails strict YAML parsing

exception 'Drupal\Component\Serialization\Exception\InvalidDataTypeException' with message 'yaml_parse(): scanning error encountered during parsing: found unknown escape character [error] (line 5, column 13), context while parsing a quoted scalar (line 5, column 12)' in /mnt/gfs/carlyle8dev/livedev/docroot/core/lib/Drupal/Component/Serialization/YamlPecl.php:63 Stack trace: #0 [internal function]: Drupal\Component\Serialization\YamlPecl::errorHandler(2, 'yaml_parse(): s...', '/mnt/gfs/carlyl...', 46, Array) #1 /mnt/gfs/carlyle8dev/livedev/docroot/core/lib/Drupal/Component/Serialization/YamlPecl.php(46): yaml_parse('google_tag.sett...', 0, 0, Array)

When using the PECL YAML extension this error is triggered.

Replace double quote with single quote for _form class in routing.yml

This module cannot be installed on environments like Acquia either via command line or the Drupal admin due to the double quoted form class in the routing.yml. Running it through YAML linter returned a malformed error. Changing it to single quotes corrects this issue, and I can now install the module on Acquia.

google_tag.settings_form:
  path: "/admin/config/system/google_tag"
  defaults:
    _title: "Google Tag Manager"
    _form: '\Drupal\google_tag\Form\GoogleTagSettingsForm'
  requirements:
    _permission: 'administer google tag manager'

Copied from https://www.drupal.org/node/2838151

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.