Solved

Sending campaign through API without smart send and with UTM tracking

  • 26 March 2021
  • 2 replies
  • 160 views

Badge +3

Hi !

I want to schedule a campaign using an API call in PHP without the smart sending option but with the UTM tracking option and it does not seem to work.

 

I am able to create and schedule the campaign, but no matter the value I provide for parameters use_smart_sending and add_google_analytics, the first one always ends upTRUE and the second one always FALSE.

 

Everything else works as expected and I have been able to schedule test mailing to the list I want with the template I want, but impossible to set correctly these 2 parameters.

 

Any idea of what the problem could be ?

 

Thanks! 

icon

Best answer by julie.accardo 27 March 2021, 14:30

View original

2 replies

Userlevel 5
Badge +34

Hi @jocallier,

One issue I notice arises sometimes is the formatting for smart sending and google analytics. You’ll want to make sure that both the -d use_smart_sending=False \ -d add_google_analytics=True do not have quotations around them. Curious if this has been formatted properly?

Best,

Julie

Badge +3

Hi Julie !

You were right, it was exactly the problem.

The system was trying to send ‘true’ or ‘false’ as boolean but sending True or False as you said did the trick.

 

I have been able to create and schedule the campaign with the correct parameters.

 

Thanks for your help !

 

Reply