'return data about order in JSON needed for google analytics'

@http.route(['/shop/tracking_last_order'], type='json', auth='public')
def tracking_cart(self, **post):

    ret = {}
    sale_order_id = request.session.get('sale_last_order_id')
    if sale_order_id:
        order = request.env['sale.order'].sudo().browse(sale_order_id)
        ret = self.order_2_return_dict(order)
    return ret
