There may be reasons to set sub-page path level Quantcast event data in the JS snippet and so I propose a function to set data that can be called from anywhere in Drupal. Then if any data is set there it will be used in the quantcast_page_build() snippet builder.

This will allow programmatic support for labels, orderids, and revenue properties.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

coltrane’s picture

Status: Active » Needs review
FileSize
2.94 KB

Here's a patch and how its function can be used:

  // hook init or somewhere
  context_set('my_context', 'specific event', TRUE);

  // later on
  if (context_get('my_context', 'specific event')) {
    quantcast_event_data(array('labels' => '_fp.event.my context specific event'));
  }
greggles’s picture

Here's a re-roll.

  • greggles committed 403fa37 on 7.x-2.x authored by coltrane
    Issue #2463323 by coltrane, greggles: Programmatic Quantcast event data
    
greggles’s picture

Status: Needs review » Fixed

Now committed.

Status: Fixed » Closed (fixed)

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