Problem/Motivation

I need to access the AdWords ID from JS. Adding it to the drupalSettings object would be helpful.

Proposed resolution

In the google_adwords_lite_page_attachments() hooke, add a simple object that contains the AdWords ID (for a start) to drupalSettings. This way, you can also determine whether the module is active (through the existance of the object).

Comments

mrshowerman created an issue. See original summary.

mrshowerman’s picture

Assigned: mrshowerman » Unassigned
Status: Active » Needs review
StatusFileSize
new526 bytes

Here's a first patch.

damienmckenna’s picture

Status: Needs review » Reviewed & tested by the community

That's a useful change, thank you.

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed. Thank you.

Status: Fixed » Closed (fixed)

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