wordpress - Google Analytics -> Ecommerce -> UTM Tags not showing up -


i'm having google analytics. utm tags not being tracked. , fyi, transaction , product name showing up, it's utm parameters not.

this done within functions.php of wordpress site.

upon submission of gravity form, grabbing info entered , placing them in $ga_body array. submitting https://www.google-analytics.com/collect wp_remote_post function.

here's code: fyi i'm using stripe (https://stripe.com/) process donations, $stripe_id transaction id.

$ga_body = array(); //clear out ga_body $ga_body['v'] = 1;              // version. $ga_body['tid']= 'ua-xxxxxxxx-2';   // tracking id / property id. $ga_body['cid']= $stripe_id;         // anonymous client id. $ga_body['cn'] = 'this utm source'; $ga_body['cs'] = 'this utm campaign'; $ga_body['cm'] = 'this utm source'; $ga_body['dl'] = 'www.example.com'; $ga_body['t'] = 'item';   // transaction hit type. $ga_body['ti'] = $stripe_id;        // transaction id. required. $ga_body['in'] = 'donation';  // item name. $ga_body['iq'] = 1; // transaction shipping.  $post_url = 'https://www.google-analytics.com/collect'; $response = wp_remote_post( $post_url, array(     'method' => 'post',     'timeout' => 45,     'redirection' => 5,     'httpversion' => '1.0',     'blocking' => false,     'headers' => array(),     'body' => $ga_body     ) ); 

and have tested code printing out $ga_body , verifying data in it. data passed array correct. doing wrong analytics??

thank you


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -