@@ -81,7 +81,7 @@ def __init__(self, emitters, subject=None,
8181 self .emitters = emitters
8282 else :
8383 self .emitters = [emitters ]
84-
84+
8585 self .subject = subject
8686 self .encode_base64 = encode_base64
8787
@@ -272,9 +272,9 @@ def track_ecommerce_transaction(self, order_id, total_value,
272272 item ["order_id" ] = order_id
273273 item ["currency" ] = currency
274274 self .track_ecommerce_transaction_item (** item )
275-
275+
276276 return self
277-
277+
278278 @contract
279279 def track_screen_view (self , name = None , id_ = None , context = None , tstamp = None ):
280280 """
@@ -288,7 +288,7 @@ def track_screen_view(self, name=None, id_=None, context=None, tstamp=None):
288288 """
289289 screen_view_properties = {}
290290 if name is not None :
291- screen_view_properties ["name" ] = name
291+ screen_view_properties ["name" ] = name
292292 if id_ is not None :
293293 screen_view_properties ["id" ] = id_
294294
@@ -333,10 +333,11 @@ def track_unstruct_event(self, event_json, context=None, tstamp=None):
333333 :param event_json: The properties of the event. Has two field:
334334 A "data" field containing the event properties and
335335 A "schema" field identifying the schema against which the data is validated
336-
337336 :type event_json: self_describing_json
338337 :param context: Custom context for the event
339338 :type context: context_array | None
339+ :param tstamp: User-set timestamp
340+ :type tstamp: int | None
340341 :rtype: tracker
341342 """
342343
@@ -349,6 +350,9 @@ def track_unstruct_event(self, event_json, context=None, tstamp=None):
349350
350351 return self .complete_payload (pb , context , tstamp )
351352
353+ # Alias
354+ track_self_describing_event = track_unstruct_event
355+
352356 @contract
353357 def flush (self , async = False ):
354358 """
0 commit comments