def METHOD_NAME(context):
    site, user, message = _get_variables_from_context(context, 'google_analytics_tracking_pixel')
    pixel = GoogleAnalyticsTrackingPixel(
        site=site,
        user_id=user.id,
        campaign_source=message.app_label,
        campaign_name=message.name,
        campaign_content=message.uuid,
        document_path='/email/{}/{}/{}/{}'.format(
            message.app_label,
            message.name,
            message.send_uuid,
            message.uuid,
        ),
        document_host=site.domain.rstrip('/')
    )
    course_ids = context.get('course_ids')
    if course_ids is not None and len(course_ids) > 0:
        pixel.course_id = course_ids[0]
    return pixel.generate_image_url()