Jump to content

Analytics: mark new customer signup as goal


Coluccini

Recommended Posts

Hi,

I have installed the ganalytics module and set up the new order goal on my analytics account. But know I want to set another goal for new customer signup and I don't know where to start. Have someone already made this? can you please help me at least saying which controller should I change?

Thanks!

Link to comment
Share on other sites

I'm trying to user the createAccount hook to define a variable that makes print an Analytics pageview call on the ganalytics template.

But if I try this:

function hookCreateAccount($params)
{
  $this->context->smarty->assign('isNewCustomer', true);
  return $this->display(__FILE__, 'header.tpl');
}

isNewCustomer is not passed to header.tpl. 

 

What is the right way to pass an variable to that template from that hook? should I pass a variable to hookHeader()? how can I do that?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...