Hi. Can we add ga_push datalayer as a new ga push method?
Thanks to this we can have a php layer to add the datalayer data, and rules integration.

Comments

mistermoper created an issue. See original summary.

omarlopesino’s picture

StatusFileSize
new7.21 KB

Here is a patch adding the new method.
Rules action integration is added too, it allows add datalayer event name. The field will only appears if datalayer method is selected, or default method is selected and is set up as datalayer.

Can you review this, if you please? Thanks!!

crzdev’s picture

Status: Active » Reviewed & tested by the community

Working as expected, thanks for the patch!

crzdev’s picture

Title: Aggregate datalayer ga push method » Aggregate datalayer ga push method for events
gedur’s picture

Title: Aggregate datalayer ga push method for events » Add datalayer ga push method for events

  • GeduR committed 08155c1 on 7.x-1.x authored by mistermoper
    Issue #2856537 by mistermoper, CRZDEV: Add datalayer ga push method for...
gedur’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

Thanks, commited.

This patch needs to be ported to D8

igorik’s picture

Hi, this looks exactly as what I was looking for.
I moved from GA module to Google Tag Manager module.
So with this patch I don't need GA module for using GA push module?

Thank you.

omarlopesino’s picture

Hi igorik.
Now in dev version of ga push you need only enable google analytics because is a module's dependency.

If you just enable GA module but don't set up, it won't send ga events. So you won't have any problem to integrate ga push datalayer events with Google Tag Manager.

igorik’s picture

Thank you, it works perfectly.

crzdev’s picture

Title: Add datalayer ga push method for events » Add datalayer ga push method for events (and rules action method selector for 8.x)
Status: Patch (to be ported) » Needs review
StatusFileSize
new13.29 KB

Here is the patch with the port to 8.x version. It will include method selector implementation in all rules actions (very useful in this case and also implemented into 7.x version).

Please test it, thanks!

  • tunic committed 530bf03 on 8.x-1.x authored by CRZDEV
    Issue #2856537 by mistermoper, CRZDEV: Add datalayer ga push method for...
tunic’s picture

Status: Needs review » Fixed

Good! Thanks for the patch, it has been committed.

  • tunic committed de7a5ba on 8.x-1.x
    Issue #2856537 by mistermoper, CRZDEV: Add datalayer ga push method for...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.