def google_analytics(request):
    ga_code = None
    if hasattr(request, "site"):
        if request.site.id == 2:
            ga_code = "UA-107671034-1"
        elif request.site.id == 3:
            ga_code = "UA-107671034-4"
    return {
        "ga_code": ga_code,
    }

128bee25aaeb3633df3156519b3a9789cd0934aa
<mask token>

def google_analytics(request):
    ga_code = None
    if hasattr(request, 'site'):
        if request.site.id == 2:
            ga_code = 'UA-107671034-1'
        elif request.site.id == 3:
            ga_code = 'UA-107671034-4'
    return {'ga_code': ga_code}

def google_analytics(request):
    ga_code = None
    if hasattr(request, "site"):
        if request.site.id == 2:
            ga_code = "UA-107671034-1"
        elif request.site.id == 3:
            ga_code = "UA-107671034-4"
    return {
        "ga_code": ga_code,
    }
